Inheritance: KALib.UniqueCollection
Ejemplo n.º 1
0
		private MethodCollection GetMethodCollection()
		{
			MethodCollection methodCollection=new MethodCollection();
			Type[] types=assembly.GetTypes();
			foreach (Type type in types)
			{
				MethodInfo[] methods=type.GetMethods(Options.BindingFlags);
				foreach (MethodInfo methodInfo in methods)
				{
					if (methodInfo.DeclaringType.Namespace==namespaceName)
					{
						string className=StringHelpers.RightOfRightmostOf(methodInfo.DeclaringType.FullName, '.');
						if (className==this.className)
						{
							string methodName=methodInfo.Name;
							methodCollection.Add(methodName, new MethodItem(assembly, namespaceName, className, methodInfo));
						}
					}
				}
			}
			return methodCollection;
		}
Ejemplo n.º 2
0
		public void LoadMethods()
		{
			methodCollection=GetMethodCollection();
			methodCollection.DumpKeys("Namespace: "+namespaceName+", Class: "+className+", Methods:");
		}