11 February 2008

Coalescing Operator in C# ??

Ok let me confess first, I am working in C# for exactly 2 years now but till date i did not knew this Coalescing Operator, thanks to Mr JaiPrakash Narain from seed infotech now I know how to use this easy to use operator


look at the sample below you will come to know what I am talking about :





as you can see ?? operator is such useful to check null it reduces the lines of code

0 comments: