Thread t = new Thread(() =>
{
while (true)
{
Console.WriteLine(DateTime.Now);
Thread.Sleep(1000);
}
}
);
t.Start();
reference : http://diditwith.net/2007/02/09/WhatsInAClosure.aspx
Step 1. Install cors from NeGet Step 2. Enable cors in config using System; using System.Collections.Generic; using System.Linq; using ...
Thread t = new Thread(() =>
{
while (true)
{
Console.WriteLine(DateTime.Now);
Thread.Sleep(1000);
}
}
);
t.Start();
reference : http://diditwith.net/2007/02/09/WhatsInAClosure.aspx