public void Clear() { for (int i = mList.Count - 1; i >= 0; i--) { UpdateBase tobj = mList[i]; mList.RemoveAt(i); tobj.Dispose(); } mList.Clear(); }
public void ClearObj(UpdateBase _obj) { if (_obj == null || !mList.Contains(_obj)) { return; } mList.Remove(_obj); _obj.Owner = null; _obj.Dispose(); }