/// <summary> /// Cleans this instance. /// </summary> /// <externalUnit/> /// <revision revisor="dev01" date="11/12/2009" version="1.1.2.21"> /// Member Created /// </revision> public void Clean() { var list = new DomainObjectList <VoterRecordActionSet>(); foreach (VoterRecordActionSet set in this.VoterRecordActionSets) { if (set.VoterRecordActions.Count == 0) { list.Add(set); } } foreach (VoterRecordActionSet removedSet in list) { this.VoterRecordActionSets.Remove(removedSet); } }
/// <summary> /// Cleans this instance. /// </summary> /// <externalUnit/> /// <revision revisor="dev01" date="11/12/2009" version="1.1.2.21"> /// Member Created /// </revision> public void Clean() { var list = new DomainObjectList <ActionSession>(); foreach (ActionSession session in this.VoterRecordSessions) { if (session.VoterRecordActionSets.Count == 0) { list.Add(session); } else { session.Clean(); } } foreach (ActionSession removedSession in list) { this.VoterRecordSessions.Remove(removedSession); } }