«ThreadStaticVariable» (Задача)

Что выведет следующий код?

[ThreadStatic]
static readonly int Foo = 42;

void Main()
{
  var thread = new Thread(() => Console.WriteLine(Foo));
  thread.Start();
  thread.Join();
}

Решение

results matching ""

    No results matching ""