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()

적용 대상