NDepend.API Documentation
ToMoney(TimeSpan) Method
NDepend.TechnicalDebt Namespace > IDebtFormatter Interface > ToMoney Method : ToMoney(TimeSpan) Method
The duration to evaluate as money
Estimate an amount of money from a duration.
Syntax
double ToMoney( 
   TimeSpan duration
)

Parameters

duration
The duration to evaluate as money

Return Value

A double value that represents an amount of money
Remarks
This IDebtFormatter object has been created from a DebtSettings object.
The amount of money is expressed in this.DebtSettings.DebtSettings.Currency and is computed from the setting this.DebtSettings.DebtSettings.MoneyPerManHour.
The cents are not shown if the amount of money is greater or equals to 50.
Requirements

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

See Also

Reference

IDebtFormatter Interface
IDebtFormatter Members
Overload List