c# - Handling Type.InvokeMember Inner Exceptions nicely -
I have some code that is calling the InvokeMember method on one type, it's okay and works, but if someone If an exception occurs within the member then the debug jumps, where I call InvokeMember in opposition to internal exception.
Is it possible to debug this code as expected?
Yes this is possible. Press Ctrl-Alt-E in Visual Studio to bring the Exxes dialog box. Check the box to break on the Common Language Runtime Exception (User Only Compromised). Now debug your code and you will break it within your reflection-ionized method.
Comments
Post a Comment