public void AddCheck(CheckDescription description) { foreach (CheckList checkList in this.checks) { if (checkList.CheckName == description.CheckName) { checkList.AddCheck(description); return; } } var toAdd = new CheckList(); toAdd.CheckName = description.CheckName; toAdd.AddCheck(description); this.checks.Add(toAdd); }