Vector.GetHashCode Metodo

Definizione

Restituisce il codice hash per questo vettore.

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

Restituisce

Int32

Codice hash per l'istanza.

Esempio

Nell'esempio seguente viene illustrato come ottenere il codice hash di un oggetto Vector.

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

    return returnHashCode;
}

Si applica a