Class SerializableNullable<T>
Inheritance
SerializableNullable<T>
Assembly: Glitch9.dll
Syntax
[Serializable]
public class SerializableNullable<T> : INullable where T : struct
Type Parameters
Constructors
|
Edit this page
View Source
SerializableNullable()
Declaration
public SerializableNullable()
|
Edit this page
View Source
SerializableNullable(T?)
Declaration
public SerializableNullable(T? value)
Parameters
| Type |
Name |
Description |
| T? |
value |
|
Fields
|
Edit this page
View Source
hasValue
Declaration
[SerializeField]
protected bool hasValue
Field Value
|
Edit this page
View Source
value
Declaration
[SerializeField]
protected T value
Field Value
Properties
|
Edit this page
View Source
HasValue
Gets whether this object has a value.
Declaration
public virtual bool HasValue { get; set; }
Property Value
|
Edit this page
View Source
Value
Declaration
public virtual T Value { get; set; }
Property Value
Methods
|
Edit this page
View Source
Clear()
Declaration
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Edit this page
View Source
implicit operator T?(SerializableNullable<T>)
Declaration
public static implicit operator T?(SerializableNullable<T> nullable)
Parameters
Returns
|
Edit this page
View Source
implicit operator SerializableNullable<T>(T?)
Declaration
public static implicit operator SerializableNullable<T>(T? value)
Parameters
| Type |
Name |
Description |
| T? |
value |
|
Returns
Implements
Extension Methods