Point.GetHashCode メソッド

定義

この Pointのハッシュ コードを返します。

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

返品

この Point 構造体のハッシュ コード。

次の例は、 Point 構造体のハッシュ コードを取得する方法を示しています。

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

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

    return returnHashCode;
}

適用対象