Null Coalescing Assignment Operator for C# 5

added by KodefuGuru
1/7/2010 2:57:08 PM

3 Kicks, 117 Views

If you read my article on the null coalescing operator (??), you’ve probably got a good idea on how useful it is. It makes your code more declarative, which makes it easier to read. But I find one thing disappointing about it, which I hope can be corrected in C# 5 with the introduction of a new operator.