«StaticFieldInGenericType» (Задача)
Что выведет следующий код?
class Foo<T>
{
public static int Bar;
}
void Main()
{
Foo<int>.Bar++;
Console.WriteLine(Foo<double>.Bar);
}
Last updated
Was this helpful?
Что выведет следующий код?
class Foo<T>
{
public static int Bar;
}
void Main()
{
Foo<int>.Bar++;
Console.WriteLine(Foo<double>.Bar);
}
Last updated
Was this helpful?