public bool Equals(ConfidenceInterval other)
 {
     return(Estimation.Equals(other.Estimation) &&
            Lower.Equals(other.Lower) &&
            Upper.Equals(other.Upper) &&
            ConfidenceLevel.Equals(other.ConfidenceLevel));
 }
        /// <summary>
        /// Returns true if InputStringComparison instances are equal
        /// </summary>
        /// <param name="other">Instance of InputStringComparison to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InputStringComparison other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Input == other.Input ||
                     Input != null &&
                     Input.Equals(other.Input)
                     ) &&
                 (
                     Compare == other.Compare ||
                     Compare != null &&
                     Compare.Equals(other.Compare)
                 ) &&
                 (
                     Lower == other.Lower ||

                     Lower.Equals(other.Lower)
                 ) &&
                 (
                     Trim == other.Trim ||

                     Trim.Equals(other.Trim)
                 ));
        }
Exemple #3
0
        /// <summary>
        /// Returns true if InputJoinStrings instances are equal
        /// </summary>
        /// <param name="other">Instance of InputJoinStrings to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InputJoinStrings other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Input == other.Input ||
                     Input != null &&
                     other.Input != null &&
                     Input.SequenceEqual(other.Input)
                     ) &&
                 (
                     Separator == other.Separator ||
                     Separator != null &&
                     Separator.Equals(other.Separator)
                 ) &&
                 (
                     Lower == other.Lower ||

                     Lower.Equals(other.Lower)
                 ) &&
                 (
                     Trim == other.Trim ||

                     Trim.Equals(other.Trim)
                 ));
        }
Exemple #4
0
        public bool Equals(Interval <T> other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Lower.Equals(other.Lower) && Upper.Equals(other.Upper));
        }
Exemple #5
0
            /// <summary>
            /// Gets the vertex buffer for the specified level.
            /// </summary>
            public VBO <ColorNormalVertex> GetLevel(int Level, Polarity Direction)
            {
                if (Direction == Polarity.Negative)
                {
                    Level--;
                }
                VBO <ColorNormalVertex> c = this._Levels[Level, (int)Direction];

                if (c == null)
                {
                    IIterator <ColorNormalVertex, VBO <ColorNormalVertex> > vboc = VBO <ColorNormalVertex> .Create();

                    IBoundedPlaneSurface <Material> bps = Shape.Slice(this._StratifiedRenderer._Source, this._Axis, Level, delegate(T Lower, T Higher, Axis Axis)
                    {
                        if (Direction == Polarity.Positive && !Higher.Equals(this._StratifiedRenderer._Default))
                        {
                            return(this._StratifiedRenderer._SurfacizeFunc(Lower, this._StratifiedRenderer._Default, Axis));
                        }
                        if (Direction == Polarity.Negative && !Lower.Equals(this._StratifiedRenderer._Default))
                        {
                            return(this._StratifiedRenderer._SurfacizeFunc(this._StratifiedRenderer._Default, Higher, Axis));
                        }
                        return(Material.Default);
                    }, Material.Default);

                    QuadtreeSurface <Material> qs = bps.Extend <QuadtreeSurface <Material> >();
                    if (qs != null)
                    {
                        StaticRenderer.Send(qs, vboc, vboc);
                    }
                    else
                    {
                        StaticRenderer.Send(bps, vboc);
                    }

                    this._Levels[Level, (int)Direction] = c = vboc.End();
                }
                return(c);
            }
Exemple #6
0
 public bool Equals(Bounds <T> other) => Lower.Equals(other.Lower) && Upper.Equals(other.Upper);
Exemple #7
0
 public bool String_InvariantCultureIgnoreCase()
 => Lower.Equals(Upper, StringComparison.InvariantCultureIgnoreCase);
Exemple #8
0
 public bool String_OrdinalIgnoreCase()
 => Lower.Equals(Upper, StringComparison.OrdinalIgnoreCase);
Exemple #9
0
 protected bool Equals(Limit other)
 {
     return(Lower.Equals(other.Lower) && Upper.Equals(other.Upper) && Effort.Equals(other.Effort) && Velocity.Equals(other.Velocity));
 }