protected override void AcceptVisitor (IElementVisitor visitor) { visitor.Visit (this); foreach (var c in Children) { c.Accept (visitor); } visitor.EndVisit (this); }
protected override void AcceptVisitor(IElementVisitor visitor) { visitor.Visit(this); foreach (var c in Children) { c.Accept(visitor); } visitor.EndVisit(this); }
public void Accept(IElementVisitor visitor) { visitor.Visit(this); if (this.HasChildNodes) { visitor.BeginContainer(this); foreach (var item in this.ChildNodes) { if (item is IElementVisitorTarget evt) { evt.Accept(visitor); } } visitor.EndContainer(this); } }
public override void Accept(IElementVisitor visitor) { visitor.Visit(this); }
public override string Accept(IElementVisitor <string> visitor) { return(visitor.Visit(this)); }
public void Accept(IElementVisitor visitor) { visitor.Visit(this); }
public override TResult Accept <TState, TResult>(IElementVisitor <TState, TResult> visitor, TState state) { return(visitor.Visit(this, state)); }
protected override void AcceptVisitor(IElementVisitor visitor) { visitor.Visit(this); visitor.EndVisit(this); }
protected override void AcceptVisitor (IElementVisitor visitor) { visitor.Visit (this); visitor.EndVisit (this); }
/// <summary> /// Accepts the specified visitor. /// </summary> /// <param name="visitor">The visitor.</param> public void Accept(IElementVisitor visitor) { visitor.Visit(this); }
/// <summary> /// Accepts the specified visitor. /// </summary> /// <param name="visitor">The visitor.</param> public override void Accept(IElementVisitor visitor) { visitor.Visit(this); }
public T Visit <T>(IElementVisitor <T> visitor) { return(visitor.Visit(this)); }