public override int GetHashCode() { int hashCode = -2090188884; if (ClientObjectId != null) { hashCode += ClientObjectId.GetHashCode(); } if (ObjectId != null) { hashCode += ObjectId.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is CatalogIdMapping other && ((ClientObjectId == null && other.ClientObjectId == null) || (ClientObjectId?.Equals(other.ClientObjectId) == true)) && ((ObjectId == null && other.ObjectId == null) || (ObjectId?.Equals(other.ObjectId) == true))); }