1. 要給thread執行的method要能傳入參數Object
public static void StartClient(object messageObj)
2. 在呼叫Thread.Start()時, 傳入參數
Thread thread = new Thread(AsynchronousClient.StartClient);
thread.Start("456, 121.54068, 25.047867, 0");
沒有留言:
張貼留言