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