/// <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)); }
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)) )); }
public bool Equals(IRange <T> other) { if (other == null) { return(false); } return(Maximum.Equals(other.Maximum) && Minimum.Equals(other.Minimum)); }
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)); }
/// <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)); }
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); } }
/// <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) )); }
/// <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)) )); }
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)); }
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)); }
public bool Equals(NodeValue other) => Minimum.Equals(other.Minimum) && Maximum.Equals(other.Maximum);
public override bool Equals(object obj) { var o = obj as SlidableAttribute; return(o == null ? false : Minimum.Equals(o.Minimum) && Maximum.Equals(o.Maximum)); }
public bool Equals(DiscreteRange <T> other) { return(Minimum.Equals(other.Minimum) && Maximum.Equals(other.Maximum) && Increment.Equals(other.Increment)); }