public void InsertObject(SynchObject obj) { if (obj != null) { objects.Add(obj); } else { throw new NullReferenceException("InsertObject fail"); } }
public void RemoveObject(SynchObject obj) { objects.Remove(obj); }