Point.GetHashCode Método

Definição

Retorna o código hash para este Point.

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

Retornos

Int32

O código hash para esta estrutura Point.

Exemplos

O exemplo a seguir mostra como obter o código hash de uma Point estrutura.

private int getHashCodeExample()
{
    
    Point point1 = new Point(10, 5);

    // Get the hashcode of a Point structure
    int returnHashCode = point1.GetHashCode();

    return returnHashCode;
}

Aplica-se a