示例#1
0
        public bool UnregisterAll(NotificationDelegate del)
        {
            bool removed = false;

            foreach (KeyValuePair <string, NotificationDelegateList> e in m_registerMap)
            {
                NotificationDelegateList list = e.Value;
                removed |= list.Remove(del);
            }
            return(removed);
        }
示例#2
0
        public bool Unregister(string name, NotificationDelegate del)
        {
            NotificationDelegateList list = FindList(name);

            if (list != null)
            {
                return(list.Remove(del));
            }

            return(false);
        }