public void Clear() { for (int i = 0, imax = mCallbacks.Count; i < imax; i++) { CallbackHolderBase.Cache(mCallbacks[i]); } mCallbacks.Clear(); }
private void OnLoaded(Object obj) { int count = mCallbacks.Count; onPreCallbacks(this, obj, count); for (int i = 0; i < count; i++) { CallbackHolderBase callback = mCallbacks[i]; callback.OnLoaded(obj); CallbackHolderBase.Cache(callback); } mCallbacks.Clear(); onPostCallbacks(this, obj); }