Code References
Concepts | Issues | Fixes | Updates | Tips | Tricks
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment