void ProcessType(DemoTreeNode parent, System.Type t) { foreach (MemberInfo mi in t.GetMembers()) { parent.AddChild(new DemoTreeNode(mi.Name, mi.ToString())); } }
void ProcessAssembly (DemoTreeNode parent, Assembly asm) { string asm_name = asm.GetName ().Name; foreach (System.Type t in asm.GetTypes ()) { Dialog.Update ("Loading from {0}:\n{1}", asm_name, t.ToString ()); DemoTreeNode node = new DemoTreeNode (t.Name, t.ToString ()); ProcessType (node, t); parent.AddChild (node); } }
void ProcessAssembly(DemoTreeNode parent, Assembly asm) { string asm_name = asm.GetName().Name; foreach (System.Type t in asm.GetTypes()) { Dialog.Update("Loading from {0}:\n{1}", asm_name, t.ToString()); DemoTreeNode node = new DemoTreeNode(t.Name, t.ToString()); ProcessType(node, t); parent.AddChild(node); } }
void ProcessType (DemoTreeNode parent, System.Type t) { foreach (MemberInfo mi in t.GetMembers ()) parent.AddChild (new DemoTreeNode (mi.Name, mi.ToString ())); }