Point3D.GetHashCode 메서드

정의

Point3D 구조체의 해시 코드를 반환합니다.

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

반환

Int32

Point3D 구조체의 해시 코드입니다.

예제

다음 예제에 대 한 해시 코드를 가져오는 방법을 보여 줍니다는 Point3D 구조입니다.

// Gets the hashcode of a Point4D structure

Point4D point1 = new Point4D(10, 5, 1, 4);
int pointHashCode;

pointHashCode = point1.GetHashCode();

// Displaying Results
syntaxString = "pointHashCode = point1.GetHashCode();";
resultType = "int";
operationString = "Getting the hashcode of Point4D";
ShowResults(pointHashCode.ToString(), syntaxString, resultType, operationString);
' Gets the hashcode of a Point4D structure

Dim point1 As New Point4D(10, 5, 1, 4)
Dim pointHashCode As Integer

pointHashCode = point1.GetHashCode()

' Displaying Results
syntaxString = "pointHashCode = point1.GetHashCode()"
resultType = "int"
operationString = "Getting the hashcode of Point4D"
ShowResults(pointHashCode.ToString(), syntaxString, resultType, operationString)

적용 대상