// https://stackoverflow.com/questions/4667078/how-to-retrieve-the-loaderexception-property | |
try | |
{ | |
foreach (var asm in AppDomain.CurrentDomain.GetAssemblies()) | |
{ | |
asm.GetTypes(); | |
} | |
} | |
catch (Exception ex) | |
{ | |
if (ex is System.Reflection.ReflectionTypeLoadException) | |
{ | |
var typeLoadException = ex as ReflectionTypeLoadException; | |
var loaderExceptions = typeLoadException.LoaderExceptions; // Breakpoint | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment