VB.NET Turning Option Strict Off In-Line

前端 未结 3 1286
暖寄归人
暖寄归人 2020-12-18 19:10

Is there a way to turn option strict off for just a single line of code?

I\'m doing some maintenance work and I need to \"cheat\" in just one place and I don\'t wa

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-18 19:30

    A couple other ideas:

    • You could code with it mostly off and turn it on now and then to make sure the rest of your code complies
    • You could configure it so that Option Strict is ON for release builds but OFF for debug builds.

提交回复
热议问题