예제 #1
0
 public bool Equals(ConfidenceInterval other)
 {
     return(Estimation.Equals(other.Estimation) &&
            Lower.Equals(other.Lower) &&
            Upper.Equals(other.Upper) &&
            ConfidenceLevel.Equals(other.ConfidenceLevel));
 }
예제 #2
0
        /// <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)
                 ));
        }
예제 #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)
                 ));
        }
예제 #4
0
        public bool Equals(Interval <T> other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Lower.Equals(other.Lower) && Upper.Equals(other.Upper));
        }
예제 #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);
            }
예제 #6
0
파일: Bounds.cs 프로젝트: Pedro413/TagTool
 public bool Equals(Bounds <T> other) => Lower.Equals(other.Lower) && Upper.Equals(other.Upper);
예제 #7
0
 public bool String_InvariantCultureIgnoreCase()
 => Lower.Equals(Upper, StringComparison.InvariantCultureIgnoreCase);
예제 #8
0
 public bool String_OrdinalIgnoreCase()
 => Lower.Equals(Upper, StringComparison.OrdinalIgnoreCase);
예제 #9
0
파일: Limit.cs 프로젝트: Giessen/neptune
 protected bool Equals(Limit other)
 {
     return(Lower.Equals(other.Lower) && Upper.Equals(other.Upper) && Effort.Equals(other.Effort) && Velocity.Equals(other.Velocity));
 }