Ejemplo 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)));
        }
Ejemplo 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));
        }
Ejemplo 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);
        }