Point.Equals

Equals(object)

Specifies whether this Point contains the same coordinates as the specified Object.

public override bool Equals(object obj)
ParameterTypeDescription
objObjectThe Object to test.

Return Value

true if obj is a Point and has the same coordinates as this Point.

See Also


Equals(Point)

Tests whether other Point structure has the same location of this Point structure.

public bool Equals(Point other)
ParameterTypeDescription
otherPointOther point to test

Return Value

This method returns true if other Point structure and its X and Y properties are equal to the corresponding properties of this Point structure; otherwise, false.

See Also