public void AddReport(Report report) { ReportGroupByDate reports = null; if (!reportGroupByCategory.TryGetValue(report.Category, out reports)) { reports = new ReportGroupByDate(); reportGroupByCategory[report.Category] = reports; } reports.AddReport(report); }