What is the use of ?? operator in C#?

 Posted by Abhisek on 1/21/2010 | Category: C# Interview questions | Views: 3666

This operator allows you to assign a value to a nullable type if the retrieved value is in fact null.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Nandakumarpb on: 8/20/2010 | Points: 10
Double question mark(??) is not for the nullable type. See MSDN
The ?? operator returns the left-hand operand if it is not null, or else it returns the right operand.
And This is a kind of Immediate if statement in VB6(?) IIF.
nullable type is declaration using single question mark(?).

I hope I am correct .

Login to post response