System.Nullable<T>.GetHashCode Method

Retrieves the hash code of the object returned by the Nullable`1.Value property.

Syntax

public override int GetHashCode ()

Returns

The hash code of the object returned by the Nullable`1.Value property if the Nullable`1.HasValue property is true, or zero if the Nullable`1.HasValue property is false.

Remarks

The algorithm used to generate the hash code is unspecified.

Note: This method overrides object.GetHashCode.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0