c#子線程執行完怎麼通知主線程

定義一個委託實現回調函數 public delegate void CallBackDelegate(string message); 程序開始的時候 //把回調的方法給委託變量 CallBackDelegate cbd = CallBack; //啓動線程 Thread th = new Thread(Fun); th.Start(cbd);//開始線程,代入參數 //線程執行的方法 參數是
相關文章
相關標籤/搜索