Inheritance: KALib.UniqueCollection
コード例 #1
0
		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;
		}
コード例 #2
0
		public void LoadNamespaces()
		{
			namespaceCollection=GetNamespaceCollection();
			namespaceCollection.DumpKeys("Namespaces:");
		}