Esempio n. 1
0
        public bool Equals(SyntaxPath other)
        {
            if (other == null)
            {
                return(false);
            }

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

            return
                (_trackKinds == other._trackKinds &&
                 _kind == other._kind &&
                 _segments.SequenceEqual(other._segments, (x, y) => x.Equals(y)));
        }
Esempio n. 2
0
        public bool Equals(SyntaxPath other)
        {
            if (other == null)
            {
                return false;
            }

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

            return
                this.trackKinds == other.trackKinds &&
                this.kind == other.kind &&
                this.segments.SequenceEqual(other.segments, (x, y) => x.Equals(y));
        }