I have the following chunk of code which is using the ?? Operator for initialization:
private string _name;
public string Name
{
get { return _name ?? string.Empty; }
}
I guess that this code is valid since it works, however I get the following warning in my error list:
'_name' is never assigned to, and will always have its default value null
Is there a way to make Visual Studio
stop warning about this?