Vector3D.GetHashCode メソッド

定義

この Vector3D 構造体のハッシュ コードを取得します。

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

戻り値

Int32

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

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

// Gets the hashcode of a Vector3D structure

Vector3D vector1 = new Vector3D(20, 30, 40);
int vectorHashCode;

vectorHashCode = vector1.GetHashCode();
' Gets the hashcode of a Vector3D structure

Dim vector1 As New Vector3D(20, 30, 40)
Dim vectorHashCode As Integer

vectorHashCode = vector1.GetHashCode()

適用対象