예제 #1
0
        /// <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)
                 ));
        }