public override bool Equals(object o) { if (o == null || !(o is AddressDomain)) return false; AddressDomain b = (AddressDomain) o; return (id == b.id) && (name == b.name); }