I got confused in task class in c#. I want to know what is the equivalent line of my thread code of c# to task?
static void Main(string[] args)
{
int i = 3;
for (int x = 1; x <= i; x++)
{
Thread t = new Thread(RunThread);
t.Start();
}
Console.ReadLine();
}
public static void RunThread()
{
Console.WriteLine("Thread..");
}
Try