Dev
Nullable reference types in C# and how to handle them
Durée de lecture : environ 7 minutesBefore C# 8 came in in 2019, the following code compiled just fine : However since C# 8, and if the <Nullable> option is set to enable in the csproj (which is the case by default since C# 10/.Net 6), a warning appears at build time and the variable will Read more…