using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace CreateThread1
{
class Program
{
static void Main(string[] args)
{
Thread MyThread ;//声明线程
//用线程起始点的ThreadStart委托创建该线程的实例
MyThread = new Thread(new ThreadStart(create Thread));
MyThread.Start();//启动线程
}
private static void create()
{
Console.WriteLine("创建线程");
}
}
}
提示:
MyThread = new Thread(new ThreadStart(create Thread));
error CS1525: 无效的表达式项“)”