Пример #1
0
 public void AddNewBusy(T entity)
 {
     Debug.Assert(!All.Contains(entity));
     Debug.Assert(!AllFree.Contains(entity));
     Debug.Assert(!AllBusy.Contains(entity));
     AddBusy(entity);
 }
Пример #2
0
 private void AddBusy(T entity)
 {
     Debug.Assert(!AllBusy.Contains(entity));
     AddToBusyCollection(entity);
     all.Add(entity);
 }
Пример #3
0
 public void RemoveBusy(T entity)
 {
     Debug.Assert(AllBusy.Contains(entity));
     RemoveFromBusyCollection(entity);
     all.Remove(entity);
 }