Пример #1
0
        public static List <Type> GetAllCustomTypes()
        {
            var assembly = CustomAssemblyBuilder.GetCustomAssembly();

            try
            {
                return(assembly.GetTypes().ToList());
            }
            catch (ReflectionTypeLoadException e)
            {
                return(e.Types.Where(t => t != null).ToList());
            }
        }
Пример #2
0
 public ObjectGenerator()
 {
     _moduleBuilder = CustomAssemblyBuilder.CreateModuleBuilder();
 }