HashCode.GetHashCode Metode

Definisi

Perhatian

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

Metode ini tidak didukung dan tidak boleh dipanggil.

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

Mengembalikan

Metode ini akan selalu melemparkan NotSupportedException.

Atribut

Pengecualian

Selalu dilemparkan ketika metode ini dipanggil.

Berlaku untuk