Point.GetHashCode Point.GetHashCode Point.GetHashCode Point.GetHashCode Method

定義

この Point のハッシュ コードを返します。Returns the hash code for this Point.

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

戻り値

この Point 構造体のハッシュ コード。The hash code for this Point structure.

次の例のハッシュ コードを取得する方法を示しています、Point構造体。The following example shows how to get the hash code of a Point structure.

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

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

    return returnHashCode;

}

適用対象