C# null coalescing operator(dotnetslackers.com)
submitted by
phayman(3550) 5 years, 9 months ago
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";
|category: C#
|Views: 0
tags:
GeekZilla CoalescingOperator C# another
Everyones tags:
Your Tags: