关于线程C#怎么样让程序重新启动?
就是我想要在恢复数据后让程序自动重起.应该怎么做?using System;
using System.Threading;
private void Restart()
{
Thread thtmp = new Thread(new ParameterizedThreadStart(run));
object Name = Application.ExecutablePath;
Thread.Sleep(50);
thtmp.Start(Name);
}
private void run(Object obj)
{
Process ps = new Process();
ps.StartInfo.FileName = obj.ToString();
ps.Start();
}
为什么它总是提示ParameterizedThreadStart找不到命名空间.....