???????.NET???????к???
???????????? ???????[ 2012/11/14 11:09:18 ] ????????
???????ParameterizedThreadStart??е???????£?
????????????????????????????void??????????1??????????object
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace ?????2_??????2
{
class Program
{
static void Main(string[] args)
{
Guest guest = new Guest()
{
Name="Hello"?? Age=99
};
Thread t = new Thread(new ThreadStart(guest.DoSomething));//???ThreadStart??е???????
t.Start();
Thread.Sleep(1000);
t.Abort();
t.Join();//????Main???????t???
Console.ReadKey();
}
}
//
class Guest
{
public string Name { get; set; }
public int Age { get; set; }
public void DoSomething()
{
while (true)
{
Console.WriteLine("{0}--{1}"?? Name?? Age);
}
}
}
}
??????????????ThreadStart??У????????????????????
???????????????????????????ò???????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11