NDepend.API Documentation
ToMoney(TimeSpan) Method
NDepend.Reserved.CQLinq Namespace > ExtensionMethodsCQLinqDebtFormatter Class > ToMoney Method : ToMoney(TimeSpan) Method
The estimated duration to fix one or several issues
Estimate an amount of money from a duration.
Syntax
[Extension()]
public static double ToMoney( 
   TimeSpan duration
)

Parameters

duration
The estimated duration to fix one or several issues
Exceptions
ExceptionDescription
This extension method cannot be called from a program consuming NDepend.API. In such context, the method NDepend.TechnicalDebt.IDebtFormatter.NDepend.TechnicalDebt.IDebtFormatter.ToMoney must be called instead.
Remarks
The amount of money is expressed in the project's NDepend.TechnicalDebt.DebtSettings.NDepend.TechnicalDebt.DebtSettings.Currency and is computed from the project's NDepend.TechnicalDebt.DebtSettings.NDepend.TechnicalDebt.DebtSettings.MoneyPerManHour.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsCQLinqDebtFormatter Class
ExtensionMethodsCQLinqDebtFormatter Members
Overload List