OptionalT Class |
Namespace: Gamelogic.Extensions
[SerializableAttribute] public class Optional<T> : Optional
The OptionalT type exposes the following members.
Name | Description | |
---|---|---|
UseValue |
Gets or sets whether to use the value of this instance.
| |
Value |
The value of this instance. It should only be used if UseValue is true. Otherwise, some
other value should be used, or code that does not need it must be executed instead.
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
ThrowIfNull |
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.) |