Point.GetHashCode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the hash code for this Point.
public:
override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer
Returns
The hash code for this Point structure.
Examples
The following example shows how to get the hash code of a Point structure.
private int getHashCodeExample()
{
Point point1 = new Point(10, 5);
// Get the hashcode of a Point structure
int returnHashCode = point1.GetHashCode();
return returnHashCode;
}
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.