Mono Class Library: System.Nullable<T> Overview | Members

System.Nullable<T>.GetHashCode Method

Generates a hash code for the current instance.

public override int GetHashCode ()

Returns

If Nullable<T>.HasValue is true, a int containing the hash code for the value of the current instance is returned; otherwise, 0 is returned.

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
Since: .NET 2.0