Point3D.GetHashCode Methode

Definition

Gibt einen Hashcode für diese Point3D-Struktur zurück.

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

Gibt zurück

Ein Hashcode für die Point3D-Struktur.

Beispiele

Das folgende Beispiel zeigt, wie Sie den Hashcode einer Point3D -Struktur abrufen.

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

Gilt für: