示例#1
0
        /// <summary>
        /// Determines whether the specified <see cref="ChannelStatistics"/> is equal to the current <see cref="ChannelStatistics"/>.
        /// </summary>
        /// <param name="other">The channel statistics to compare this <see cref="ChannelStatistics"/> with.</param>
        /// <returns>True when the specified <see cref="ChannelStatistics"/> is equal to the current <see cref="ChannelStatistics"/>.</returns>
        public bool Equals(ChannelStatistics other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

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

            return
                (Depth.Equals(other.Depth) &&
                 Entropy.Equals(other.Entropy) &&
                 Kurtosis.Equals(other.Kurtosis) &&
                 Maximum.Equals(other.Maximum) &&
                 Mean.Equals(other.Mean) &&
                 Minimum.Equals(other.Minimum) &&
                 Skewness.Equals(other.Skewness) &&
                 StandardDeviation.Equals(other.StandardDeviation) &&
                 Sum.Equals(other.Sum) &&
                 SumCubed.Equals(other.SumCubed) &&
                 SumFourthPower.Equals(other.SumFourthPower) &&
                 SumSquared.Equals(other.SumSquared) &&
                 Variance.Equals(other.Variance));
        }
示例#2
0
        public bool Equals(DestinyInventoryItemStatDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     StatHash == input.StatHash ||
                     (StatHash.Equals(input.StatHash))
                     ) &&
                 (
                     Value == input.Value ||
                     (Value.Equals(input.Value))
                 ) &&
                 (
                     Minimum == input.Minimum ||
                     (Minimum.Equals(input.Minimum))
                 ) &&
                 (
                     Maximum == input.Maximum ||
                     (Maximum.Equals(input.Maximum))
                 ) &&
                 (
                     DisplayMaximum == input.DisplayMaximum ||
                     (DisplayMaximum.Equals(input.DisplayMaximum))
                 ));
        }
示例#3
0
        public bool Equals(IRange <T> other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Maximum.Equals(other.Maximum) && Minimum.Equals(other.Minimum));
        }
示例#4
0
 public bool Equals(Value other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Maximum.Equals(other.Maximum) && Actual.Equals(other.Actual));
 }
示例#5
0
        /// <summary>
        /// Indicates whether this instance and a specified envelope are equal.
        /// </summary>
        /// <param name="another">The envelope to compare with this instance.</param>
        /// <returns><c>true</c> if <paramref name="another" /> and this instance represent the same value; otherwise, <c>false</c>.</returns>
        public Boolean Equals(Envelope another)
        {
            if (ReferenceEquals(null, another))
            {
                return(false);
            }
            if (ReferenceEquals(this, another))
            {
                return(true);
            }

            return(Minimum.Equals(another.Minimum) && Maximum.Equals(another.Maximum));
        }
示例#6
0
        public override bool Equals(object other)
        {
            if (other == null)
            {
                return(false);
            }

            if (!(other is Interval))
            {
                return(false);
            }

            return(Minimum.Equals(((Interval)other).Minimum) && Maximum.Equals(((Interval)other).Maximum));
        }
 /// <summary>Value, Minimum, Maximum, SmallChange, LargeChange and TickFrequency are compared.</summary>
 public override bool Equals(object obj)
 {
     if (obj == null || (this.GetType() != obj.GetType()))
     {
         return(false);
     }
     try
     {
         var objAsT = (RangedRangeType <T>)obj;
         if (From.Equals(objAsT.From))
         {
             return(false);
         }
         if (To.Equals(objAsT.To))
         {
             return(false);
         }
         if (Minimum.Equals(objAsT.Minimum))
         {
             return(false);
         }
         if (Maximum.Equals(objAsT.Maximum))
         {
             return(false);
         }
         if (SmallChange.Equals(objAsT.SmallChange))
         {
             return(false);
         }
         if (LargeChange.Equals(objAsT.LargeChange))
         {
             return(false);
         }
         if (TickFrequency.Equals(objAsT.TickFrequency))
         {
             return(false);
         }
         return(true);
     }
     catch (Exception ex)
     {
         if (CanRaiseDebbugerBreak)
         {
             Debugger.Break(); Console.WriteLine(ex.Message);
         }
         return(false);
     }
 }
示例#8
0
        /// <summary>
        /// Returns true if StateDescription instances are equal
        /// </summary>
        /// <param name="input">Instance of StateDescription to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(StateDescription input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Minimum == input.Minimum ||
                     (Minimum != null &&
                      Minimum.Equals(input.Minimum))
                     ) &&
                 (
                     Maximum == input.Maximum ||
                     (Maximum != null &&
                      Maximum.Equals(input.Maximum))
                 ) &&
                 (
                     Step == input.Step ||
                     (Step != null &&
                      Step.Equals(input.Step))
                 ) &&
                 (
                     Pattern == input.Pattern ||
                     (Pattern != null &&
                      Pattern.Equals(input.Pattern))
                 ) &&
                 (
                     ReadOnly == input.ReadOnly ||
                     (ReadOnly != null &&
                      ReadOnly.Equals(input.ReadOnly))
                 ) &&
                 (
                     Options == input.Options ||
                     Options != null &&
                     Options.SequenceEqual(input.Options)
                 ));
        }
示例#9
0
 /// <devdoc>
 /// <para>Indicates whether the <see cref='System.Windows.Forms.NumericUpDown.Maximum'/> property should be persisted.</para>
 /// </devdoc>
 private bool ShouldSerializeMaximum()
 {
     return(!Maximum.Equals(NumericUpDown.DefaultMaximum));
 }
        /// <summary>
        /// Returns true if ChartAxisConfigBean instances are equal
        /// </summary>
        /// <param name="input">Instance of ChartAxisConfigBean to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ChartAxisConfigBean input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Axis == input.Axis ||
                     (Axis != null &&
                      Axis.Equals(input.Axis))
                     ) &&
                 (
                     Label == input.Label ||
                     (Label != null &&
                      Label.Equals(input.Label))
                 ) &&
                 (
                     Color == input.Color ||
                     (Color != null &&
                      Color.Equals(input.Color))
                 ) &&
                 (
                     Format == input.Format ||
                     (Format != null &&
                      Format.Equals(input.Format))
                 ) &&
                 (
                     Minimum == input.Minimum ||
                     (Minimum != null &&
                      Minimum.Equals(input.Minimum))
                 ) &&
                 (
                     Maximum == input.Maximum ||
                     (Maximum != null &&
                      Maximum.Equals(input.Maximum))
                 ) &&
                 (
                     Position == input.Position ||
                     (Position != null &&
                      Position.Equals(input.Position))
                 ) &&
                 (
                     MajorColor == input.MajorColor ||
                     (MajorColor != null &&
                      MajorColor.Equals(input.MajorColor))
                 ) &&
                 (
                     MajorWidth == input.MajorWidth ||
                     (MajorWidth != null &&
                      MajorWidth.Equals(input.MajorWidth))
                 ) &&
                 (
                     MajorStyle == input.MajorStyle ||
                     (MajorStyle != null &&
                      MajorStyle.Equals(input.MajorStyle))
                 ) &&
                 (
                     MinorColor == input.MinorColor ||
                     (MinorColor != null &&
                      MinorColor.Equals(input.MinorColor))
                 ) &&
                 (
                     MinorWidth == input.MinorWidth ||
                     (MinorWidth != null &&
                      MinorWidth.Equals(input.MinorWidth))
                 ) &&
                 (
                     MinorStyle == input.MinorStyle ||
                     (MinorStyle != null &&
                      MinorStyle.Equals(input.MinorStyle))
                 ));
        }
示例#11
0
 public bool Equals(SimParameterSharedState other) =>
 Name == other.Name &&
 Value.Equals(other.Value) &&
 Minimum.Equals(other.Minimum) &&
 Maximum.Equals(other.Maximum) &&
 Distribution == other.Distribution;
 public bool Equals(ISSNAreaCodeData other)
 {
     return(StateAbbreviation.Equals(other.StateAbbreviation, StringComparison.CurrentCultureIgnoreCase) &&
            Minimum.Equals(other.Minimum) &&
            Maximum.Equals(other.Maximum));
 }
示例#13
0
 protected bool Equals(Range <T> other)
 {
     return(Maximum.Equals(other.Maximum) && Minimum.Equals(other.Minimum));
 }
 /// Indicates whether the Maximum property should be persisted.
 private bool ShouldSerializeMaximum()
 {
     return(!Maximum.Equals(DataGridViewNumericUpDownCell.DATAGRIDVIEWNUMERICUPDOWNCELL_defaultMaximum));
 }
示例#15
0
 public bool Equals(NodeValue other)
 => Minimum.Equals(other.Minimum) && Maximum.Equals(other.Maximum);
示例#16
0
        public override bool Equals(object obj)
        {
            var o = obj as SlidableAttribute;

            return(o == null ? false : Minimum.Equals(o.Minimum) && Maximum.Equals(o.Maximum));
        }
示例#17
0
 public bool Equals(DiscreteRange <T> other)
 {
     return(Minimum.Equals(other.Minimum) && Maximum.Equals(other.Maximum) && Increment.Equals(other.Increment));
 }