A StackOverflow post[^so] says `TypeLoadException` is thrown *before* the method body is even executed. Maybe you want a separate method, or even an own class?
[^so]: https://stackoverflow.com/questions/3346740/typeloadexception-is-not-caught-by-try-catch