Error!
Success!

C# null coalescing operator

0
kicks

C# null coalescing operator  (Unpublished)

I have a new favorite feature in VS 2005 - the null coalescing operator: ?? This is a short cut for checking if a value is null and if so returning the value of the second operand. The syntax is as follows: string newVal = myVal ?? "default";


Kicked By:
Drop Kicked By: