# “StaticFieldInGenericType” (Problem)

What will the following code display?

```csharp
class Foo<T>
{
  public static int Bar;
}
void Main()
{
  Foo<int>.Bar++;
  Console.WriteLine(Foo<double>.Bar);
}
```

[Solution](https://andreyakinshin.gitbook.io/problembookdotnet/en/oop/staticfieldingenerictype-s)
