ThreadStart中如何带参数? //定义委托public void threadHand1_Run(DateTime? timeStart, DateTime? timeEnd){}//调用threadHand1 = new Thread(new ThreadStart(threadHand1_Run(timeStart,timeEnd)));threadHand1.Start();这样报错,提示错误“应输入方法名称”请问一下ThreadStart该怎么传递两个参数呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 本帖最后由 Sandy945 于 2011-11-10 11:07:16 编辑 orthreadHand1 = new Thread(delegate(){threadHand1_Run(timeStart,timeEnd);});threadHand1.Start(); threadHand1 = new Thread(new ThreadStart()=> { threadHand1_Run(timeStart,timeEnd); }); threadHand1.Start();这样么?还是报错呀 threadHand1 = new Thread(new ParameterizedThreadStart(delegate {threadHand1_Run(timeStart,timeEnd);}));threadHand1.Start(); =>不能被识别呀无效的表达式项“>” public void A(object 参数);therad mytherad=new therad(A);mythread.start((object)要传得东西); 请问怎么把vs2010起始页的新建项目改为新建网站? 图片滚动 ASP.NET三层架构 ★重写gridview并为其添加自定义template,如何处理template的内部控件的事件? 用DataGrid绑定到DataTable后,DataGrid无法显示出数据? 数组和数据库中各有50000条记录,请教哪个检索起来快一些? 試圖運行項目時出錯,無法在Web服務器上啟動調試。Access is denied. 是否希望以後對此項目禁用asp.net頁調試? 关于vb.net中的asp.net的问题,急,急,急!! C#中关于大数据库的查询遍历问题 asp.net正则表达式求HTML title vs2010里创建Oracle的ADO.NET实体数据模型问题 .net删除问题过来看看~~
threadHand1.Start();
{
threadHand1_Run(timeStart,timeEnd);
});
threadHand1.Start();
这样么?
还是报错呀
threadHand1.Start();
不能被识别呀
无效的表达式项“>”