struct Nullable<T>
Represents a value type that can be assigned .
TThe underlying value type of the generic type.
public bool Equals( object other )
Indicates whether the current object is equal to a specified object.
otherAn object.- Returns if the parameter is equal to the current object; otherwise, . This table describes how equality is defined for the compared values: Return Value Description The property is , and the parameter is . That is, two null values are equal by definition. -or- The property is , and the value returned by the property is equal to the parameter. The property for the current structure is , and the parameter is . -or- The property for the current structure is , and the parameter is not . -or- The property for the current structure is , and the value returned by the property is not equal to the parameter.
public bool HasValue { get; }
Gets a value indicating whether the current object has a valid value of its underlying type.
- Returns if the current object has a value; if the current object has no value.
public T Value { get; }
Gets the value of the current object if it has been assigned a valid underlying value.
- Returns The value of the current object if the property is . An exception is thrown if the property is .
public T GetValueOrDefault( )
😔 No documentation found.
public T GetValueOrDefault( T defaultValue )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public static Nullable<T> op_Implicit( T value )
😔 No documentation found.
public static T op_Explicit( Nullable<T> value )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public Nullable<T>( T value )
😔 No documentation found.