Esempio n. 1
0
        /// <inheritdoc />
        public bool Equals([AllowNull] Sort other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Type == other.Type ||
                     Type != null &&
                     Type.Equals(other.Type)
                     ) &&
                 (
                     Enabled == other.Enabled ||
                     Enabled != null &&
                     Enabled.Equals(other.Enabled)
                 ) &&
                 (
                     Target == other.Target ||
                     Target != null &&
                     Target.Equals(other.Target)
                 ) &&
                 (
                     Equals(TargetArray, other.TargetArray) ||
                     TargetArray != null && other.TargetArray != null &&
                     TargetArray.SequenceEqual(other.TargetArray)
                 ) &&
                 (
                     Order == other.Order ||
                     Order != null &&
                     Order.Equals(other.Order)
                 ) &&
                 (
                     TargetSrc == other.TargetSrc ||
                     TargetSrc != null &&
                     TargetSrc.Equals(other.TargetSrc)
                 ));
        }
Esempio n. 2
0
        public bool Equals([AllowNull] Filter other)
        {
            if (other == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return((Type == other.Type && Type != null && other.Type != null && Type.Equals(other.Type)) &&
                   (Enabled == other.Enabled && Enabled != null && other.Enabled != null && Enabled.Equals(other.Enabled)) &&
                   (Target == other.Target && Target != null && other.Target != null && Target.Equals(other.Target)) &&
                   (Equals(TargetArray, other.TargetArray) || TargetArray != null && other.TargetArray != null && TargetArray.SequenceEqual(other.TargetArray)) &&
                   (Operation == other.Operation && Operation != null && other.Operation != null && Operation.Equals(other.Operation)) &&
                   (Value == other.Value && Value != null && other.Value != null && Value.Equals(other.Value)) &&
                   (PreserveGaps == other.PreserveGaps && PreserveGaps != null && other.PreserveGaps != null && PreserveGaps.Equals(other.PreserveGaps)) &&
                   (ValueCalendar == other.ValueCalendar && ValueCalendar != null && other.ValueCalendar != null && ValueCalendar.Equals(other.ValueCalendar)) &&
                   (TargetCalendar == other.TargetCalendar && TargetCalendar != null && other.TargetCalendar != null && TargetCalendar.Equals(other.TargetCalendar)) &&
                   (TargetSrc == other.TargetSrc && TargetSrc != null && other.TargetSrc != null && TargetSrc.Equals(other.TargetSrc)));
        }