Mono Class Library: System.String Overview | Members

System.String.GetHashCode Method

Generates a hash code for the current instance. [Edit]

[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail)]
public override int GetHashCode ()

Returns

A int containing the hash code for this instance. [Edit]

Remarks

The algorithm used to generate the hash code is unspecified.

Note: This method overrides object.GetHashCode.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0