Question about #nullable enable #656
-
Hi, The generated code for Example:
This code generates a warning in visual studio: So, can I safely assume that the generated code will work, even if visual studio shows warnings ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That is correct, you're getting the warning because you've marked the property as not nullable. You can either ignore the warning (since the property can in fact be null), or enable nullability annotations in that file (or in your whole project, if possible). |
Beta Was this translation helpful? Give feedback.
That is correct, you're getting the warning because you've marked the property as not nullable. You can either ignore the warning (since the property can in fact be null), or enable nullability annotations in that file (or in your whole project, if possible).