Csharp/C Sharp by API/System.Threading/ThreadStart
Версия от 15:31, 26 мая 2010; (обсуждение)
new ThreadStart(delegate )
using System;
using System.Threading;
class MainClass {
public static void Countdown() {
for (int i = 10; i > 0; i--) {
Console.Write(i.ToString() + " ");
}
}
public static void Main() {
Thread t2 = new Thread(new ThreadStart(Countdown));
t2.Start();
}
}