예제 #1
0
        /// <inheritdoc />
        public bool Equals([AllowNull] ErrorY other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Visible == other.Visible ||
                     Visible != null &&
                     Visible.Equals(other.Visible)
                     ) &&
                 (
                     Type == other.Type ||
                     Type != null &&
                     Type.Equals(other.Type)
                 ) &&
                 (
                     Symmetric == other.Symmetric ||
                     Symmetric != null &&
                     Symmetric.Equals(other.Symmetric)
                 ) &&
                 (
                     Equals(Array, other.Array) ||
                     Array != null && other.Array != null &&
                     Array.SequenceEqual(other.Array)
                 ) &&
                 (
                     Equals(ArrayMinus, other.ArrayMinus) ||
                     ArrayMinus != null && other.ArrayMinus != null &&
                     ArrayMinus.SequenceEqual(other.ArrayMinus)
                 ) &&
                 (
                     Value == other.Value ||
                     Value != null &&
                     Value.Equals(other.Value)
                 ) &&
                 (
                     ValueMinus == other.ValueMinus ||
                     ValueMinus != null &&
                     ValueMinus.Equals(other.ValueMinus)
                 ) &&
                 (
                     TraceRef == other.TraceRef ||
                     TraceRef != null &&
                     TraceRef.Equals(other.TraceRef)
                 ) &&
                 (
                     TraceRefMinus == other.TraceRefMinus ||
                     TraceRefMinus != null &&
                     TraceRefMinus.Equals(other.TraceRefMinus)
                 ) &&
                 (
                     Color == other.Color ||
                     Color != null &&
                     Color.Equals(other.Color)
                 ) &&
                 (
                     Thickness == other.Thickness ||
                     Thickness != null &&
                     Thickness.Equals(other.Thickness)
                 ) &&
                 (
                     Width == other.Width ||
                     Width != null &&
                     Width.Equals(other.Width)
                 ) &&
                 (
                     ArraySrc == other.ArraySrc ||
                     ArraySrc != null &&
                     ArraySrc.Equals(other.ArraySrc)
                 ) &&
                 (
                     ArrayMinusSrc == other.ArrayMinusSrc ||
                     ArrayMinusSrc != null &&
                     ArrayMinusSrc.Equals(other.ArrayMinusSrc)
                 ));
        }