Vector.GetHashCode Méthode

Définition

Retourne le code de hachage pour ce vecteur.

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

Retours

Int32

Code de hachage de cette instance.

Exemples

L’exemple suivant montre comment obtenir le code de hachage d’un Vector.

private int getHashCodeExample()
{
    Vector vector1 = new Vector(20, 30);
    int returnHashCode = vector1.GetHashCode();

    return returnHashCode;
}

S’applique à