public override bool Equals(object obj) { if (obj is Complex) { var c = (Complex) obj; return (Re == c.Re) && (Im == c.Im); } return false; }