Friday, 17 April 2009

Coalesing in C#

// numberAfterCoalescing will be equals to 100 in this case
int? number = null; int numberAfterCoalescing = (number ?? 100);

No comments: