VB.NET Turning Option Strict Off In-Line

前端 未结 3 1287
暖寄归人
暖寄归人 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:38

    Since it must appear in the declarations section of the module then option strict can't be used in the middle of code. But it can be done on a per-module basis which might help a little.

    And there is no mention in the "Visual Basic 2005 in a nutshell" book that suggests there's another method of turning it on or off.

提交回复
热议问题