![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
Code
using System;
using System.Collections.Generic;
using System.Text;
namespace 线程传值
{
class Program
{
static void Main(string[] args)
{
int a = 100;
System.Threading.Thread thread = new System.Threading.Thread(delegate()
{
Print(a);
});
thread.Start();
}
private static void Print(int a)
{
Console.WriteLine(a.ToString());
}
}
}
posted @
2009-03-11 09:21
mx1700
阅读(
276)
评论()
编辑
收藏
举报