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); }
public bool Unregister(string name, NotificationDelegate del) { NotificationDelegateList list = FindList(name); if (list != null) { return(list.Remove(del)); } return(false); }