using System;
Foo.Print();
class Foo
{
static dynamic bar = new {
A = 1,
B = 2
};
public static void Print() {
Console.WriteLine(bar.A);
}