Esempio n. 1
0
        /// <inheritdoc />
        public bool Equals(DocumentItemBase other)
        {
            if (other is null)
            {
                return(false);
            }

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

            return(Children.SequenceEqual(other.Children) &&
                   (ExpressionStart.Equals(other.ExpressionStart)));
        }
Esempio n. 2
0
        /// <inheritdoc />
        public bool Equals(DocumentItemBase other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

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

            return(Children.SequenceEqual(other.Children) &&
                   (ReferenceEquals(ExpressionStart, other.ExpressionStart) ||
                    ExpressionStart.Equals(other.ExpressionStart)) &&
                   string.Equals(Kind, other.Kind));
        }
Esempio n. 3
0
        /// <inheritdoc />
        public virtual bool Equals(DocumentItemBase other)
        {
            if (other is null)
            {
                return(false);
            }

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

            if (!ExpressionStart.Equals(other.ExpressionStart))
            {
                return(false);
            }
            if (Equals(TagCreationOptions, other.TagCreationOptions))
            {
                return(true);
            }

            return(TagCreationOptions?.SequenceEqual(other.TagCreationOptions) ?? false);
        }