Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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
You can’t perform that action at this time.