NDepend.API Documentation
ToMoneyString Method
NDepend.TechnicalDebt Namespace > IDebtFormatter Interface : ToMoneyString Method
The duration to evaluate as money
Gets a string shortened with 'K' for thousands and 'M' for millions, that represents an amount of money estimated from a duration.
Syntax
string ToMoneyString( 
   TimeSpan duration
)

Parameters

duration
The duration to evaluate as 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.
If duration.System.DateTime.Ticks is higher than Debt.NDepend.TechnicalDebt.Debt.MAX_TICKS or lower than Debt.NDepend.TechnicalDebt.Debt.MIN_TICKS this method returns the string "overflow".
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