NDepend.API Documentation
ToString(TimeSpan,String) Method
NDepend.TechnicalDebt Namespace > IDebtFormatter Interface > ToString Method : ToString(TimeSpan,String) Method
The estimated duration to fix one or several issues
The string that contains debt formatting tags defined in DebtStringFormat.
Format the technical duration to a string, according to the format string.
Syntax

Parameters

duration
The estimated duration to fix one or several issues
format
The string that contains debt formatting tags defined in DebtStringFormat.

Return Value

A string representing the technical debt estimation formatted
Remarks
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
Overload List
DebtStringFormat Class