By tag: CoalescingOperator
0
kicks
C# null coalescing operator
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";