C# 8.0 nullable references: defeating the point with empty strings

added by DotNetKicks
10/20/2020 4:31:40 PM

105 Views

In this post, I'll explain why you should avoid the temptation to apply a quick, and seemingly easy fix for a particular warning that can occur when you start using C#'s nullable references feature. You can silence the compiler by initializing string properties to an empty string, but you really shouldn't.


0 comments