private NamespaceCollection GetNamespaceCollection() { NamespaceCollection nc=new NamespaceCollection(); Type[] types=assembly.GetTypes(); foreach (Type type in types) { MethodInfo[] methods=type.GetMethods(Options.BindingFlags); foreach (MethodInfo methodInfo in methods) { string nameSpace=methodInfo.DeclaringType.Namespace; nc.Add(nameSpace, new NamespaceItem(assembly, nameSpace)); } } return nc; }
public void LoadNamespaces() { namespaceCollection=GetNamespaceCollection(); namespaceCollection.DumpKeys("Namespaces:"); }