mostlylucid

scott galloway's personal blog...
posts - 916, comments - 758, trackbacks - 11

My Links

News

Archives

Post Categories

Misc. Coding

November 2007 Entries

C# null Coalescing operator

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();

posted @ Saturday, November 03, 2007 5:07 PM | Feedback (0) | Filed Under [ .NET Code Snippets ]

You ain't seen me right!

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...

posted @ Friday, November 02, 2007 8:07 PM | Feedback (0) | Filed Under [ Links ]

Powered by: