loading...

re: The Problem(s) with Nullable Reference Types VIEW POST

TOP OF THREAD FULL DISCUSSION
re: It seems the preferred way in the release version is to add: <Nullable>enable</Nullable> To your .csproj file.
 

Okay, because I have also seen;

<NullableReferenceTypes>true</NullableReferenceTypes>

During the previews of C# 8.0 that was the way to do it. In the release version however <Nullable> is preferred. For example, the official docs use it.

Thanks. That doc is 9 months old (before v3.0) I’ll give it a try.

Code of Conduct Report abuse