예제 #1
0
 public void UnRegister(BaseModelObject model)
 {
     lock (_allData)
     {
         _allData.RemoveAll(wr => ReferenceEquals(wr.Target, model));
     }
 }
예제 #2
0
 public void Register(BaseModelObject model)
 {
     lock (_allData)
     {
         _allData.Add(new WeakReference(model));
     }
 }