Size3D.GetHashCode 메서드

정의

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

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

반환

Int32

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

예제

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

// Gets the hashcode of a Size3D Structure

Size3D size1 = new Size3D(2, 4, 6);
int sizeHashcode;

sizeHashcode = size1.GetHashCode();

// Displaying Results
resultType = "int";
syntaxString = "sizeHashcode = size1.GetHashCode;";
operationString = "Getting the hashcode of size1";
ShowResults(sizeHashcode.ToString(), syntaxString, resultType, operationString);
' Gets the hashcode of a Size3D Structure

Dim size1 As New Size3D(2, 4, 6)
Dim sizeHashcode As Integer

sizeHashcode = size1.GetHashCode()

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

적용 대상