public override int GetHashCode() { int hashCode = -908281753; if (CatalogV1IdProp != null) { hashCode += CatalogV1IdProp.GetHashCode(); } if (LocationId != null) { hashCode += LocationId.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is CatalogV1Id other && ((CatalogV1IdProp == null && other.CatalogV1IdProp == null) || (CatalogV1IdProp?.Equals(other.CatalogV1IdProp) == true)) && ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true))); }