public override void Render(IEnumerable <IReportSection> sections, ValidationReportData data) { foreach (IReportSection section in sections) { IEnumerable <IReportElement> elements = section.CreateSection(data); foreach (dynamic element in elements) { // Dynamically dispatch to a render method based on the element type Render(element); } } }
public abstract void Render(IEnumerable <IReportSection> sections, ValidationReportData data);