3 ms·
> I also don’t think C# will prevent you from forgetting to do a if null check in cases where you expect values to sometimes be null. It should throw a warning
by jolux 4y ago
> I also don’t think C# will prevent you from forgetting to do a if null check in cases where you expect values to sometimes be null.
It should throw a warning in situations where a non-nullable value is not clearly non-null when it’s dereferenced. So you won’t get a warning in the body of a method declaration with a non-billable parameter, for example, but you will get a warning if you attempt to pass null into it.