Exemplo n.º 1
0
 /// <summary>
 /// ����һ���Դ����EventHandlerList������̰߳�ȫ�ķ�װ 
 /// </summary>
 /// <param name="eventList"></param>
 /// <returns></returns>
 public static EventHandlerList Synchronized(EventHandlerList eventList)
 {
     if (eventList == null)
     {
         throw new ArgumentNullException("eventList");
     }
     return new SyncEventHandlerList(eventList);
 }
Exemplo n.º 2
0
            /// <summary>
            /// 
            /// </summary>
            /// <param name="eventList"></param>
            public SyncEventHandlerList(EventHandlerList eventList)
            {
                syncEventHandlerList = eventList;

                //�ͷŻ����е�ɢ�б����
                base.Dispose();
            }