Skip to content

Instantly share code, notes, and snippets.

@JayBazuzi
Last active June 11, 2016 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayBazuzi/939c8c7d570e7a7476659fcb75ae2658 to your computer and use it in GitHub Desktop.
Save JayBazuzi/939c8c7d570e7a7476659fcb75ae2658 to your computer and use it in GitHub Desktop.
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