sonar-dotnet icon indicating copy to clipboard operation
sonar-dotnet copied to clipboard

NET-1991 Feature request: Don't use code that exists for VB6 compatibility reasons

Open Corniel opened this issue 6 years ago • 1 comments

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)

Corniel avatar Apr 26 '19 08:04 Corniel

Internal ticket NET-1991