Make Compiler Implicit Data Type Conversions Explicit

I work with a large VB.NET code base. The project has Option Strict Off . This means that data type conversions occur implicitly.

I want to change the project to Option Strict On . To satisfy the compiler, all type conversions must now be done explicitly. However, for the purpose of functional equivalence, I would like to take all the transformations that the compiler would perform with Option Strict Off and make them explicit in my source code. Instead of doing it manually, I am wondering if there is a tool that I can use that will help me do this automatically?

I tried using a decompiler, but this does not work for me, since I found cases where IL does not lend itself to VB .

+2
source share

Source: https://habr.com/ru/post/1305348/


All Articles