Leer en inglés

Compartir a través de


HashCode.GetHashCode Método

Definición

Precaución

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

Este método no se admite y no se debe llamar.

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

Devoluciones

Este método siempre produce una excepción NotSupportedException.

Atributos

Excepciones

Siempre se produce cuando se llama a este método.

Se aplica a

Producto Versiones (Obsoleto)
.NET (Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9)
.NET Standard (2.0 (package-provided), 2.1)