Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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" ?



Good point. I originally wrote it for VB.NET, though IF(nullableVar,defaultValue) would be better now...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: