Thursday, May 30, 2013

Double question mark operator ??, .NET

The double question mark operator is used to provide default value for nullable type. e.g. done? is a nullable type and to provide a default value to it, we use done??false. It will return false when done is null.

No comments:

Post a Comment