Created
April 9, 2020 15:12
-
-
Save cjvandyk/030f519549900aa39bd0e09777142997 to your computer and use it in GitHub Desktop.
Retrieve LoaderExceptions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
catch (Exception ex) | |
{ | |
if (ex is System.Reflection.ReflectionTypeLoadException) | |
{ | |
var typeEx = ex as ReflectionTypeLoadException; | |
var loadEx = typeEx.LoaderExceptions; | |
//Do something with loadEx | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment