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

The method itself just uses the default value of the corresponding type. If you have a sequence of ints, and you cast it to Nullable<int> first before applying FirstOrDefault, then you can distinguish between null and 0.


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

Search: