Monday, June 6, 2011

If null give default value

All this time I did not know about this lovely operator (null coalescing operator) : ??
It does one simple thing, If the value is null use the default value given as rvalue to the operator
On MSDN : http://msdn.microsoft.com/en-us/library/ms173224(v=VS.100).aspx