4 ms·
> For any nullable, I can use a nullableVar.DefaultTo(defaultValue) to convert it to a non-nullable primitive type. What would be the difference with "nullable
by jpatte 12y ago
> For any nullable, I can use a nullableVar.DefaultTo(defaultValue) to convert it to a non-nullable primitive type.
What would be the difference with "nullableVar ?? defaultValue" ?
- steego 12y agoGood point. I originally wrote it for VB.NET, though IF(nullableVar,defaultValue) would be better now...