Point.GetHashCode Metodo

Definizione

Restituisce il codice hash per questo oggetto Point.

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

Restituisce

Int32

Codice hash per la struttura Point.

Esempio

Nell'esempio seguente viene illustrato come ottenere il codice hash di una Point struttura.

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

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

    return returnHashCode;
}

Si applica a