public bool UnregisterAll(CNotificationDelegate del) { bool removed = false; foreach (KeyValuePair <string, CNotificationDelegateList> e in m_registerMap) { CNotificationDelegateList list = e.Value; removed |= list.Remove(del); } return(removed); }
public bool Unregister(string name, CNotificationDelegate del) { CNotificationDelegateList list = FindList(name); if (list != null) { return(list.Remove(del)); } return(false); }