public virtual void Visit(InlineContainer elements) { foreach (var element in elements) { element.Accept(this); } }
/// <summary> /// Visits the inline container. /// </summary> /// <param name="inlineContainer">The inline container.</param> public virtual void VisitInlineContainer(InlineContainer inlineContainer) { foreach (var element in inlineContainer) { element.Accept(this); } }
public virtual void Visit(InlineContainer elements) { for (int index = 0; index < elements.Count; index++) { var inlineElement = elements[index]; inlineElement.Accept(this); } }
/// <summary> /// Visits the inline container. /// </summary> /// <param name="inlineContainer">The inline container.</param> public virtual void VisitInlineContainer(InlineContainer inlineContainer) { if (inlineContainer == null) { return; } for (int index = 0; index < inlineContainer.Count; index++) { var inlineElement = inlineContainer[index]; inlineElement.Accept(this); } }
protected bool Equals(InlineContainer other) { return(Elements.Count == other.Elements.Count && Elements.SequenceEqual(other.Elements)); }