m Fix category |
Added a See Also section. |
||
Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
Use this wherever you need a value variable (for example [[Type:Bool | bool]] or [[Type:Float | float]]), but you also need to track an unset/empty/null state. | Use this wherever you need a value variable (for example [[Type:Bool | bool]] or [[Type:Float | float]]), but you also need to track an unset/empty/null state. | ||
== See Also == | |||
* Wikipedia's definition of [https://en.wikipedia.org/wiki/Nullable_type nullable types]. | |||
* Microsoft's documentation on the [https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/nullable-value-types nullable value types] & [https://learn.microsoft.com/en-us/dotnet/csharp/nullable-references nullable reference types]. | |||
[[Category:Type]] | [[Category:Type]] | ||
[[Category:Type:Value]] | [[Category:Type:Value]] |
Revision as of 17:42, 27 June 2024
A Nullable<T> is a generic value type that can store a null value - normally only possible by reference types.
For more information on how this type functions, see the Microsoft documentation on Nullable<T>
Usage
Use this wherever you need a value variable (for example bool or float), but you also need to track an unset/empty/null state.
See Also
- Wikipedia's definition of nullable types.
- Microsoft's documentation on the nullable value types & nullable reference types.