public MethodInfo[] GetMethods(BindingFlags bindingFlags) { if (RuntimeType == null) return new MethodInfo[0]; return RuntimeType.GetMethods(bindingFlags); }
public static void RegisterModule(Module module) { if (module == null) throw new ArgumentNullException("module"); foreach (Type type in module.GetTypes()) { RegisterType(type); } foreach (MethodInfo method in module.GetMethods()) { RegisterMethod(method); } }