sonar-dotnet
sonar-dotnet copied to clipboard
NET-1991 Feature request: Don't use code that exists for VB6 compatibility reasons
Description
When Microsoft invented .NET the decided it would be nice if existing VB6 (and earlier versions too) of Visual Basic could smoothly convert. Therefor the created some helper classes in the Microsoft.VisualBasic namespace to make that happen.
An example is of a module (static class) that should not longer be used is: Microsoft.VisualBasic.DateAndTime
But there are more candidates: https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic
Note that it is possible to use these classes in C# code too.
Also 'Option Strict Off' should not be used. (This is a VB.NET only feature)
Internal ticket NET-1991