using System; class C { public static int Foo; } class X { public static void Main () { } void Test (T A) { A (); object C; var c = C.Foo; } static void A () { } }