/// <inheritdoc /> public bool Equals([AllowNull] Polar other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Domain == other.Domain || Domain != null && Domain.Equals(other.Domain) ) && ( Equals(Sector, other.Sector) || Sector != null && other.Sector != null && Sector.SequenceEqual(other.Sector) ) && ( Hole == other.Hole || Hole != null && Hole.Equals(other.Hole) ) && ( BgColor == other.BgColor || BgColor != null && BgColor.Equals(other.BgColor) ) && ( RadialAxis == other.RadialAxis || RadialAxis != null && RadialAxis.Equals(other.RadialAxis) ) && ( AngularAxis == other.AngularAxis || AngularAxis != null && AngularAxis.Equals(other.AngularAxis) ) && ( GridShape == other.GridShape || GridShape != null && GridShape.Equals(other.GridShape) ) && ( UiRevision == other.UiRevision || UiRevision != null && UiRevision.Equals(other.UiRevision) )); }
/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var 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); } }