Point.GetHashCode Metodo

Definizione

Restituisce il codice hash per l'oggetto Point.

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

Valori restituiti

Codice hash per questa Point struttura.

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