Last active
June 11, 2016 23:29
-
-
Save JayBazuzi/939c8c7d570e7a7476659fcb75ae2658 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
class Point | |
{ | |
override bool Equals(object other) | |
{ | |
if (other.GetType() != this.GetType()) return false; | |
return this.X == ((Point)other).X && this.Y == ((Point)other).Y; | |
} | |
} | |
new Point(...).Equals(null) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment