Wednesday, January 09, 2013

??- Is Null Operator in C#

?? works as a Is Null operator in C#.

It can be used as

c = a??b


If a is non null value, a will be assigned to c, other wise b will be assigned to c.


?? operator is introduces in C# 2.0

No comments:

Post a Comment