Point.op_Equality

Point Equality operator

Compares two Point objects. The result specifies whether the values of the X and Y properties of the two Point objects are equal.

public static bool operator ==(Point left, Point right)
ParameterTypeDescription
leftPointFirst Point to compare.
rightPointSecond Point to compare.

Return Value

true if the X and Y values of left and right are equal; otherwise, false.

See Also