Point.GetHashCode Método

Definição

Devolve o código de hash para este Point.

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

Devoluções

O código de hash para esta Point estrutura.

Exemplos

O exemplo seguinte 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