«ThreadStaticVariable» (Задача)
[ThreadStatic]
static readonly int Foo = 42;
void Main()
{
var thread = new Thread(() => Console.WriteLine(Foo));
thread.Start();
thread.Join();
}Last updated
[ThreadStatic]
static readonly int Foo = 42;
void Main()
{
var thread = new Thread(() => Console.WriteLine(Foo));
thread.Start();
thread.Join();
}Last updated