colinmackay.scot
Tip of the day: Using the null-coalescing operator over the conditional operator
I’ve recently been refactoring a lot of code that used the conditional operator and looked something like this:int someValue = myEntity.SomeNullableValue.HasValue ? myEntity.SomeNullableValue.Value…