Langue

Vector3D.GetHashCode Méthode

Définition

Obtient un code de hachage pour cette Vector3D structure.

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

Retours

Code de hachage pour cette Vector3D structure.

Exemples

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

// Gets the hashcode of a Vector3D structure

Vector3D vector1 = new Vector3D(20, 30, 40);
int vectorHashCode;

vectorHashCode = vector1.GetHashCode();
' Gets the hashcode of a Vector3D structure

Dim vector1 As New Vector3D(20, 30, 40)
Dim vectorHashCode As Integer

vectorHashCode = vector1.GetHashCode()

S’applique à