using System; using System.Collections; public class Test { class Hoge { public int x = 10; } public static void Main() { ArrayList testlist = new ArrayList(); Hoge hogeinst = new Hoge(); testlist.Add(hogeinst); Hoge thisClass = (Hoge)testlist[0]; int y = thisClass.x; Console.WriteLine(y); } }