Point.GetHashCode Metoda

Definicja

Zwraca kod skrótu dla tego pliku Point.

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

Zwraca

Int32

Kod skrótu dla tej Point struktury.

Przykłady

W poniższym przykładzie pokazano, jak uzyskać kod skrótu Point struktury.

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

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

    return returnHashCode;
}

Dotyczy