示例#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));
     }
 }