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/4ae17ec794f49665844e3b3e01614867 to your computer and use it in GitHub Desktop.
Save JayBazuzi/4ae17ec794f49665844e3b3e01614867 to your computer and use it in GitHub Desktop.
class Point
{
override bool Equals(object other)
{
return this.X == ((Point)other).X && this.Y == ((Point)other).Y;
}
}
new Point(...).Equals(new Bar(...))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment