79133547

Date: 2024-10-28 13:17:03
Score: 1
Natty:
Report link

I would suggest initializing the variable with null:

MyType? myVar = null;

You can then check whether it has been set to an non-null value using:

var isSet = myVar != null;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: GlabbichRulz