Auf Englisch lesen

Freigeben über


Point4D.GetHashCode Methode

Definition

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

C#
public override int GetHashCode ();

Gibt zurück

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

Beispiele

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

C#
// 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);

Gilt für:

Produkt Versionen
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9