C#C
C#3y ago
Jwan

❔ Non-nullable property 'Name' must contain a non-null value when exiting constructor

In the following class, why do I get this warning and how do I make it happy? I supposed I could make it like
string? Name
but that isn't really accurate because I can never have a PlayerModel where the Name is
null
. Same for
ImageUrl
image.png
Was this page helpful?