Point.GetHashCode Método

Definición

Devuelve el código hash de este objeto Point.

public:
 override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

Devoluciones

Int32

Código hash para esta estructura Point.

Ejemplos

En el ejemplo siguiente se muestra cómo obtener el código hash de una Point estructura.

private int getHashCodeExample()
{
    
    Point point1 = new Point(10, 5);

    // Get the hashcode of a Point structure
    int returnHashCode = point1.GetHashCode();

    return returnHashCode;
}

Se aplica a