Given the class as follows,
public class Number { public int X { get; set; } public int Y { get; set; } }
How to define an overload operato
overload the operator yourself:
public static bool operator ==(Number a, Number b) { // do stuff return true/false; }