I've just started writing on a component where I found it might be useful to declare some of the properties nullable, instead of letting them resort to default values. However, I realized that I've never before used the non-nullable-type?
syntax or the Nullable<T>
type before, so there are probably some gotchas that'll soon jump out and bite me. So...
What are the biggest gotchas when using
Nullable<T>
and the shorthand?
syntax?How do I work around them?
What are the biggest advantages/new possibilities that are made available to me when I start using them?