using System;
using System.Threading;
namespace Rextester
{
public class Program
//static int j =0;
public static void Main(string[] args)
int i = 10;
var MyThread = new Thread (delegate() { MyMethod(i); });
MyThread.Start();
Thread.Sleep(10);
}
public static void MyMethod(int j)
Console.WriteLine("Thread({0})", j);