public static void XMain() { Console.WriteLine("TestForBothRuntimes"); Console.WriteLine(); var Foo2 = new Foo2(); var t = typeof(Foo2); var a = t.GetFields(); foreach (var item in a) { Console.WriteLine("a: " + item); } Console.WriteLine("/TestForBothRuntimes"); Console.WriteLine(); }