Пример #1
0
 public virtual void Visit(InlineContainer elements)
 {
     foreach (var element in elements)
     {
         element.Accept(this);
     }
 }
Пример #2
0
 /// <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);
     }
 }
Пример #3
0
 public virtual void Visit(InlineContainer elements)
 {
     for (int index = 0; index < elements.Count; index++)
     {
         var inlineElement = elements[index];
         inlineElement.Accept(this);
     }
 }
Пример #4
0
 /// <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);
     }
 }
Пример #5
0
 protected bool Equals(InlineContainer other)
 {
     return(Elements.Count == other.Elements.Count &&
            Elements.SequenceEqual(other.Elements));
 }