Point4D.GetHashCode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回這個 Point4D 結構的雜湊程式碼。
public:
override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer
傳回
傳回這個 Point4D 結構的雜湊程式碼。
範例
下列範例示範如何取得 結構的雜湊碼 Point4D 。
// 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)