public override bool Equals(object obj) { if (!(obj is twoInts)) { return(false); } twoInts ints = (twoInts)obj; return(this.a == ints.a && this.b == ints.b); }
public void handle(twoInts d) { Console.WriteLine("Got twoInts: "); Console.WriteLine("a: " + d.a); Console.WriteLine("b: " + d.b); }