示例#1
0
文件: BusySet.cs 项目: draculeq/Utils
 public void AddNewBusy(T entity)
 {
     Debug.Assert(!All.Contains(entity));
     Debug.Assert(!AllFree.Contains(entity));
     Debug.Assert(!AllBusy.Contains(entity));
     AddBusy(entity);
 }
示例#2
0
文件: BusySet.cs 项目: draculeq/Utils
 private void AddBusy(T entity)
 {
     Debug.Assert(!AllBusy.Contains(entity));
     AddToBusyCollection(entity);
     all.Add(entity);
 }
示例#3
0
文件: BusySet.cs 项目: draculeq/Utils
 public void RemoveBusy(T entity)
 {
     Debug.Assert(AllBusy.Contains(entity));
     RemoveFromBusyCollection(entity);
     all.Remove(entity);
 }