c# - Why does VS2010 always break on exception from MethodInfo.Invoke? -
i have try/catch around methodinfo.invoke(o,null), , vs2010 set never break on exceptions, unfortunately debugger continues break inside invoked method. method static, , i've got phone developer beta installed.
is bug or developer error?
thx!!
yes, every exception check-box un-checked breaks on these invoke exceptions. other exceptions work fine.
the great news anonymous genius gave me work-around:
delegate void voidtest(); voidtest test = (voidtest)delegate.createdelegate(typeof(voidtest), o, method.name); test();
these exceptions land in exception handler expected! =)
Comments
Post a Comment