public void Accept(IProductVisitor visitor) { foreach (Product product in _products) { product.Accept(visitor); } }
internal void Inflation(IProductVisitor visitor) { foreach (var item in Products) { item.Accept(visitor); } }
internal void AcceptVisitor(IProductVisitor visitor) { foreach (var item in Products) { item.Accept(visitor); } }
public TResult Accept <TResult>(IProductVisitor <TResult> visitor) { return(visitor.Visit(this)); }
public override void Accept(IProductVisitor visitor) => visitor.Visit(this);
public abstract ICommonInterface Visit(IProductVisitor productVisitor);
public override ICommonInterface Visit(IProductVisitor productVisitor) { /* Forwards the SpecificProductB to the Visitor */ return(productVisitor.GetCommonInterface(this)); }
public virtual void Accept(IProductVisitor visitor) { visitor.Visit(this); }
public abstract void Accept(IProductVisitor visitor);