Just because I always forget this...the C# null Coalescing operator:
Sample below shamelessly stolen from here...
MyClass anObject;
...
// Variant 1: Using a full if/else clause
MyClass anotherObject;
if (anObject != null)
 anotherObject = anObject;
else
 anotherObject = new MyClass();
Â
// Variant 2: Using the ?/: conditional operator
MyClass anotherObject = anObject != null ? anObject : new MyClass();
Â
// Variant 3: Using the ?? operator
MyClass anotherObject = anObject ?? new MyClass();
Not really back but this was just too great a link to miss, the page is called '25 Photographs Taken at the Exact Right Time'Â and they're not kidding!
Anyway, I'm on the path I want to be and I'll get back to this blog soon...(cryptic enough for ya? )Â
P.S., the title is a reference to this show...just realized that non brits wouldn't get it...