HashCode.GetHashCode Metódus

Definíció

Figyelemfelhívás

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

Ez a metódus nem támogatott, ezért nem hívható meg.

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

Válaszok

Ez a módszer mindig dob egy NotSupportedException.

Attribútumok

Kivételek

Ezt a metódust mindig a metódus meghívásakor kell eldobni.

A következőre érvényes: