private static void Add(Assesment assesment, Database db, AssessmentRecommendation recom, ImpactedObject impacted, List <object[]> root) { var list = impacted.SuggestedFixes; if (!list.Any()) { root.Add(new object[] { assesment, db, recom, impacted }); return; } foreach (var fix in list) { root.Add(new object[] { assesment, db, recom, impacted, fix }); } }
private static void Add(Assesment assesment, Database db, AssessmentRecommendation recom, List <object[]> root) { var impactedObjs = recom.ImpactedObjects; if (!impactedObjs.Any()) { root.Add(new object[] { assesment, db, recom }); return; } foreach (var impacted in impactedObjs) { Add(assesment, db, recom, impacted, root); } }