如果您正苦于以下问题:C# Point.Equals方法的具体用法?C# Point.Equals怎么用?C# Point.Equals使用的例子?那么, 这里精选的代码示例或许能为您提供帮助。
以下是System.Windows.Point
类Point.Equals方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为感觉有用的代码点赞,您的评价将有助于系统推荐出更好的C#代码示例。
示例1: nonStaticEqualsExample
private Boolean nonStaticEqualsExample()
{
Point point1 = new Point(10, 5);
Point point2 = new Point(15, 40);
// Check if the two points are equal using the non-static Equals method.
// areEqual is false
Boolean areEqual = point1.Equals(point2);
return areEqual;
}
示例2: staticEqualsExample
private Boolean staticEqualsExample()
{
Point point1 = new Point(10, 5);
Point point2 = new Point(15, 40);
// Check if the two points are equal using the static Equals method.
// areEqual is false
Boolean areEqual = Point.Equals(point1, point2);
return areEqual;
}