mirror of https://github.com/abpframework/abp.git
5 changed files with 21 additions and 36 deletions
@ -1,21 +0,0 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Reflection; |
|||
|
|||
namespace Volo.Internal |
|||
{ |
|||
internal static class AssemblyHelper |
|||
{ |
|||
public static IReadOnlyList<Type> GetAllTypes(Assembly assembly) |
|||
{ |
|||
try |
|||
{ |
|||
return assembly.GetTypes(); |
|||
} |
|||
catch (ReflectionTypeLoadException ex) |
|||
{ |
|||
return ex.Types; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue