Click or drag to resize

OptionalInt Class

Represents an optional int value.
Inheritance Hierarchy
SystemObject
  Gamelogic.ExtensionsOptional
    Gamelogic.ExtensionsOptionalInt32
      Gamelogic.ExtensionsOptionalInt

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class OptionalInt : Optional<int>

The OptionalInt type exposes the following members.

Constructors
  NameDescription
Public methodOptionalInt
Top
Properties
  NameDescription
Public propertyUseValue
Gets or sets whether to use the value of this instance.
(Inherited from OptionalT.)
Public propertyCode exampleValue
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.
(Inherited from OptionalT.)
Top
Methods
Extension Methods
  NameDescription
Public Extension MethodThrowIfNull
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.)
Top
See Also