Partager via


Point4D.GetHashCode Méthode

Définition

Retourne un code de hachage pour cette structure Point4D.

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

Retours

Retourne un code de hachage pour cette structure Point4D.

Exemples

L’exemple suivant montre comment obtenir le code de hachage d’une Point4D structure.

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

S’applique à