问题
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