-
C#教程之C#线程 入门(2)
本站最新发布 C#从入门到精通
试听地址 https://www.xin3721.com/eschool/CSharpxin3721/
试听地址 https://www.xin3721.com/eschool/CSharpxin3721/
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); } |