Total .NET Analyzer Rule Documentation  

VBControlChars Rule

Avoid references to the legacy VBControlChars class.

Remarks

In general, you should avoid references to members of the Microsoft Visual Basic .NET Runtime library. Most of the members of this library are for backwards compatibility with older version of Visual Basic. Generally, references to legacy calls do not take full advantage of the .NET framework, and are not portable to other languages without an explicit reference to the Microsoft Visual Basic .NET Runtime library . In almost every case, you can replace calls to this library with .NET equivalents.

Resolution

The Microsoft.VisualBasic.ControlChars class provides various constants used by Visual Basic for printing and displaying (such as the Print, PrintLine, Write, and WriteLine functions). As you replace uses of these Visual Basic functions and methods with .NET native calls, you will no longer need to rely on this class.

See Also

Print and Display Constants

System.Drawing.Printing Namespace

System.IO Namespace