Created
January 17, 2009 13:54
-
-
Save mariusz/48346 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override bool Equals(object obj) | |
{ | |
CustomPoint point = (CustomPoint)obj; | |
if(point == null) | |
{ | |
return false; | |
} | |
if(this.x == point.x && this.y == point.y) | |
{ | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment