Total .NET Analyzer Rule Documentation  

VBStrings Rule

Avoid references to the legacy VBStrings 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.Strings class provides objects for working with strings. Consider replacing these conversion functions with native .NET calls using the System.String class. Keep in mind, however, that strings in .NET are immutable objects, and you should consider using the StringBuilder class for manipulating strings.

See Also

Strings

String Manipulation