OptionalValue<T>¶
Namespace:
SideXP.Core| Inherits from:IOptionalValue<T>
Represents a value that may be used or not given a boolean.
Constructors¶
OptionalValue()¶
OptionalValue(T, bool)¶
Represents a value that may be used or not given a boolean.
Parameters
valueenabled
Properties¶
Value¶
Inherited documentation.
Enabled¶
Is this value enabled?
Methods¶
implicit operator T(OptionalValue<T>)¶
Converts this optional value into its expected value type.
Parameters
value: The optional value to convert.
implicit operator OptionalValue<T>(T)¶
Converts a value into an optional value instance.
Parameters
value: The value to convert.