This is a cool operator that is new to me. Coalescing is normal operation over databases, and it was brought to C#.
We simply use it like:
return somenullablevariable ?? "oops, data was null";
Pick it from ScottGu, where it extend it's usage to LINQ
This is a cool operator that is new to me. Coalescing is normal operation over databases, and it was brought to C#.
We simply use it like:
return somenullablevariable ?? "oops, data was null";
Posted by Mário Romano at Friday, September 21, 2007
Labels: Development
No comments:
Post a Comment