TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mursaleen fayyaz
NA
84
126k
Null coalescing Operator
Jun 3 2013 1:28 PM
If the first operand is not null, then the overall expression has the value of the first operand.
If the first operand is null, then the overall expression has the value of the second operand.
For example:
int? a = null;
int b;
b = a ?? 10; //b = 10
a = 3;
b = a ?? 10; //b = 3
Reply
Answers (
0
)
Type Information Operators
An unhandled exception of type 'System.NullReferenceExceptio