public void AddNewBusy(T entity) { Debug.Assert(!All.Contains(entity)); Debug.Assert(!AllFree.Contains(entity)); Debug.Assert(!AllBusy.Contains(entity)); AddBusy(entity); }
private void AddBusy(T entity) { Debug.Assert(!AllBusy.Contains(entity)); AddToBusyCollection(entity); all.Add(entity); }
public void RemoveBusy(T entity) { Debug.Assert(AllBusy.Contains(entity)); RemoveFromBusyCollection(entity); all.Remove(entity); }