private static void ThreadFuncInternal2(object data) { Common.Property aRecord = (Common.Property)data; EventFunc2 Func = (EventFunc2)aRecord.Key; object[] para = (object[])aRecord.Value; Func(para); }
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); }