示例#1
0
 /// <summary>
 /// Fills a list with all the module names in this assembly (or its parent)
 /// </summary>
 /// <param name="ModuleNames">List to receive the module names</param>
 public void GetAllModuleNames(List <string> ModuleNames)
 {
     if (Parent != null)
     {
         Parent.GetAllModuleNames(ModuleNames);
     }
     ModuleNames.AddRange(CompiledAssembly.GetTypes().Where(x => x.IsClass && x.IsSubclassOf(typeof(ModuleRules)) && ModuleNameToModuleFile.ContainsKey(x.Name)).Select(x => x.Name));
 }
 /// <summary>
 /// Fills a list with all the module names in this assembly (or its parent)
 /// </summary>
 /// <param name="ModuleNames">List to receive the module names</param>
 public void GetAllModuleNames(List <string> ModuleNames)
 {
     if (Parent != null)
     {
         Parent.GetAllModuleNames(ModuleNames);
     }
     ModuleNames.AddRange(ModuleNameToModuleFile.Keys);
 }