Make Compiler's Implicit Data Type Conversions Explicit

倖福魔咒の 提交于 2019-12-24 03:59:46

问题


I'm working with a large VB.NET code base. The project is set to have Option Strict Off. This means that data type conversions take place implicitly.

I am looking to change the project to have Option Strict On. To satisfy the compiler, all type conversions will now have to be made explicitly. However, with the goal of functional equivalency, I'd like to take all the conversions the compiler would do when Option Strict Off and make them explicit in my source code. Rather than do this manually, I'm wondering whether there's a tool I can use which would help me do this automatically?

I've tried using a decompiler, but this doesn't seem to work for me since I've found cases where the IL doesn't lend itself to VB.

来源:https://stackoverflow.com/questions/47562402/make-compilers-implicit-data-type-conversions-explicit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!