C# User Defined Exception handling for Erroe from Dll get Exception was unhandled by user code

后端 未结 1 1738
耶瑟儿~
耶瑟儿~ 2021-01-29 11:34

i am working with dynamic c# application that links all the classes into the main application from the Dll files that i create separately, in these files when i connect my dll f

相关标签:
1条回答
  • 2021-01-29 12:26

    i think i get the answer here, when i link my dll into the application by reference and then using it as a object inside of my application by using directive it works fine and lets me to use throw exception to the application's throw catch statement, but when it added into the application by dynamically it expect me to handle my exceptions inside the dll and solve what ever the problems, it wont allow me to throw exceptions by using throw new exception("err") to the application

    Evan a there is no err handling for that throw new exception is okay, but it wont allow the throw in catch block

    0 讨论(0)
提交回复
热议问题