Edit

Share via


HashCode.GetHashCode Method

Definition

Caution

HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.

This method is not supported and should not be called.

public:
 override int GetHashCode();
[System.Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.", true)]
public override int GetHashCode ();
[<System.Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.", true)>]
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

Returns

This method will always throw a NotSupportedException.

Attributes

Exceptions

Always thrown when this method is called.

Applies to