Reputation: 1
I am trying to use code from classes in a console program in classes for a forms program so our project can have a working GUI and that console program used nullable reference types. how can i bypass this so i get the same functionality?
static private Radio? _radio;
Upvotes: 0
Views: 132
Reputation: 16079
You have to update .csproj
file to support C# 8.0 version and enable nullable option,
<PropertyGroup>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
How to edit .csproj
file?
Alternate way:
Note: Image and GIF content is just for demo purpose, .csproj content will be different for you
Upvotes: 3