Type:Nullable`1: Difference between revisions

From Resonite Wiki
mNo edit summary
m Fix category
Line 7: Line 7:




[[Category:Types]]
[[Category:Type]]
[[Category:Types:Value]]
[[Category:Type:Value]]

Revision as of 21:09, 14 January 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.