Afficher en anglais

Partage via


HashCode.GetHashCode Méthode

Définition

Attention

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

Cette méthode n’est pas prise en charge et ne doit pas être appelée.

C#
[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 ();

Retours

Int32

Cette méthode lève toujours un NotSupportedException.

Attributs

Exceptions

Toujours levé quand cette méthode est appelée.

S’applique à

Produit Versions (Obsolète)
.NET (Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7)
.NET Standard (2.1)