using System;
var point = new Point();
class Point : IEquatable<Point>
{
public int X{ get; init; }
public int Y{get; init; }
public bool Equals(Point other) => (X, Y) == (other.X, other.Y);
public override int GetHashCode() => (X, Y).GetHashCode();
}