Total .NET Analyzer Rule Documentation  

VBFinancial Rule

Avoid references to the legacy VBFinancial 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.Financial class provides mathematical functions for working with financial data. There are currently no .NET analogs for its functions such as IRR, Ipmt, and Rate. If you are concerned about using legacy Visual Basic libraries, consider rewriting this functionality in your own .NET code.

See Also

Financial