internal void Clear<T>() where T : EventArgs {
            Type type = typeof(T);
            if (!this.listenersByType.ContainsKey(type)) {
                return;
            }

            IEventList eventList = this.listenersByType[type];
            uint[] ids = eventList.Ids;
            foreach (uint id in ids) {
                this.listenersById.Remove(id);
            }
            eventList.Clear();
        }
Пример #2
0
 void ICollection <ViewChannel> .Clear() => m_ViewChannels.Clear();