Ejemplo n.º 1
0
    static public void Remove(string eventName, EventHandler handler, float timeout = 0)
    {
        lock (EventDescriptionList)
        {
            EventDescription item = EventDescriptionList.Find(FindEventDescriptionForNameAntTimeOut);

            if (item != null)
            {
                item.handler -= handler;

                if (item.Empty())
                {
                    EventDescriptionList.Remove(item);
                }
            }
        }
    }