当前位置:
首页 > temp > 简明python教程 >
-
C#线程 入门(2)
1
2
3
4
5
6
7
8
9
10
11
|
static void Main() { Thread t = new Thread (Print); t.Start ( "Hello from t!" ); } static void Print ( object messageObj) { string message = ( string ) messageObj; // We need to cast here Console.WriteLine (message); } |