Exemplo n.º 1
0
        private static void ThreadFuncInternal2(object data)
        {
            Common.Property aRecord = (Common.Property)data;
            EventFunc2      Func    = (EventFunc2)aRecord.Key;

            object[] para = (object[])aRecord.Value;
            Func(para);
        }
Exemplo n.º 2
0
        public static Thread Start(EventFunc2 ThreadFunc, params object[] data)
        {
            Thread aNewThread = new Thread(new ParameterizedThreadStart(ThreadFuncInternal2));

            Common.Property aRecord = new Common.Property(ThreadFunc, data);

            aNewThread.Start(aRecord);
            return(aNewThread);
        }