RuntimeBinderException when using dynamic object

前端 未结 1 839
误落风尘
误落风尘 2020-12-21 07:33

I feel like I\'m missing something obvious here so feel free to point it out to me.

I have a simple unit test to illustrate my problem:

        [Test         


        
相关标签:
1条回答
  • 2020-12-21 07:49

    You are setting the debugger to break when CLR exceptions are thrown (i.e. first-chance) not unhandled (i.e. second-chance). Obviously, you can untick this and it will go away, but if you want to see first-chance exceptions only from your code, then you can enable the Just My Code option. With Just My Code enabled the debugger will only break on a first-chance exception if it passes through your code. These options don't affect the behavior of your application for a user, only what the debugger does when attached.

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