Point.GetHashCode Metoda

Definice

Vrátí kód hash pro tento Pointkód .

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

Návraty

Int32

Kód hash pro tuto Point strukturu.

Příklady

Následující příklad ukazuje, jak získat kód Point hash struktury.

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

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

    return returnHashCode;
}

Platí pro