using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace ConsoleApplication6
{
public class MyThread
{
private string data;
public MyThread(string data)
{
this.data = data;
}
public void ThreadMain()
{
Console.WriteLine("Running in a thread,data: {0}",data);
}
}
class Program
{
static void Main(string[] args)
{
MyThread obj = new MyThread("Info");
Thread t3 = new Thread(obj.ThreadMain);
t3.Start();
}
}
}