/// <summary> /// Visits all sections in this report. /// </summary> /// <param name="visitor">The report visitor.</param> public void Visit(IReportVisitor visitor) { foreach (var section in this.Sections) { // Cast to dynamic to force runtime overload selection visitor.Visit((dynamic)section); } }
public ReportWalker(IReportVisitor visitor) { if (visitor == null) { throw new ArgumentNullException("visitor"); } myVisitor = visitor; myAlreadyVisited = new List <object>(); }
public ReportWalker( IReportVisitor visitor ) { if ( visitor == null ) { throw new ArgumentNullException( "visitor" ); } myVisitor = visitor; myAlreadyVisited = new List<object>(); }
public void Accept(IReportVisitor visitor) { visitor.Visit(this); }
public IEnumerable <Object> Accept(IReportVisitor visitor) { return(visitor.ExportCustomerReport(this._customer)); }
public IEnumerable <Object> Accept(IReportVisitor visitor) { return(visitor.ExportAccessoryReceiptReport(this._accessoryReceipt)); }
public IEnumerable <Object> Accept(IReportVisitor visitor) { return(visitor.ExportRevenueReport(this._bill)); }