Wednesday, November 10, 2010

C# ?? two question marks

You ever wonder what ?? means in C# language?

Its a cool shortcut for checking for nulls and returning a value...

I find it very useful when working with Linq queries... that may return some nullable fields..

Great article:

http://stackoverflow.com/questions/446835/what-do-two-question-marks-together-mean-in-c

No comments:

Post a Comment