C# language feature:
applies to
- value types (
bool
, datetime
, enum
, struct
, etc)
benefit
- Useful when dealing with values from a database, when values returned from your table is NULL.
how to use
- Add
?
after the value type at declaration.
note
- Reference types are already nullable.
example: