Well it’s just a quick one but it’s kinda cool:)
I know lots of you have been doing this “initialize once” type of code
if (_a== null) _a = new A();
Well, to save a few keystrokes you can do it like this
_a = _a ?? new A();
Haven’t seen it around, so just to put it out there:)
Leave a Comment