Always Get Better

Defaulting Null Variables

One of the things I miss most about C# is the expressive ways in which it handles variable defaults. The ‘double ?’ – ?? – operator is especially useful for checking whether a value is NULL and providing a default object:

Leave a Reply