using System;
namespace ConsoleApplication_C_Sharp
{
public class Point
{
private int x;
private int y;
public Point(int x, int y)
{
this.x = x;
this.y = y;
}
public override int GetHashCode()
{
return Tuple.Create(x, y).GetHashCode();
}
}
class Program
{
static void Main(string[] args)
{
Point pt = new Point(3, 7);
Console.WriteLine(pt.GetHashCode());
pt = new Point(7, 3);
Console.WriteLine(pt.GetHashCode());
}
}
}
/*
run:
100
228
*/