public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Domain != null) { hashCode = hashCode * 59 + Domain.GetHashCode(); } if (Sector != null) { hashCode = hashCode * 59 + Sector.GetHashCode(); } if (Hole != null) { hashCode = hashCode * 59 + Hole.GetHashCode(); } if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (RadialAxis != null) { hashCode = hashCode * 59 + RadialAxis.GetHashCode(); } if (AngularAxis != null) { hashCode = hashCode * 59 + AngularAxis.GetHashCode(); } if (GridShape != null) { hashCode = hashCode * 59 + GridShape.GetHashCode(); } if (UiRevision != null) { hashCode = hashCode * 59 + UiRevision.GetHashCode(); } return(hashCode); } }
public bool Equals([AllowNull] Polar other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return((Domain == other.Domain && Domain != null && other.Domain != null && Domain.Equals(other.Domain)) && (Equals(Sector, other.Sector) || Sector != null && other.Sector != null && Sector.SequenceEqual(other.Sector)) && (Hole == other.Hole && Hole != null && other.Hole != null && Hole.Equals(other.Hole)) && (BgColor == other.BgColor && BgColor != null && other.BgColor != null && BgColor.Equals(other.BgColor)) && (RadialAxis == other.RadialAxis && RadialAxis != null && other.RadialAxis != null && RadialAxis.Equals(other.RadialAxis)) && (AngularAxis == other.AngularAxis && AngularAxis != null && other.AngularAxis != null && AngularAxis.Equals(other.AngularAxis)) && (GridShape == other.GridShape && GridShape != null && other.GridShape != null && GridShape.Equals(other.GridShape)) && (UiRevision == other.UiRevision && UiRevision != null && other.UiRevision != null && UiRevision.Equals(other.UiRevision))); }