NDepend.API Documentation
EffortToDevelop Method (ExtensionMethodsCQLinqDebtFormatter)
NDepend.Reserved.CQLinq Namespace > ExtensionMethodsCQLinqDebtFormatter Class : EffortToDevelop Method
The code element on which to infer time-to-develop.
Evaluate the total time to develop codeElement based on codeElement.NDepend.CodeModel.ExtensionMethodsHelpers.GetNbLinesOfCode_GuaranteedIfPDBFound, by applying a linear coefficent inferred from the project NDepend.TechnicalDebt.DebtSettings settings: NDepend.TechnicalDebt.DebtSettings.EstimatedNumberOfManDayToDevelop1000LogicalLinesOfCode and NDepend.TechnicalDebt.DebtSettings.NumberOfWorkHourPerDay.
Syntax
[Extension()]
public static Nullable<TimeSpan> EffortToDevelop( 
   ICodeElement codeElement
)

Parameters

codeElement
The code element on which to infer time-to-develop.
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.EffortToDevelop must be called instead.
Remarks
This method returns null if codeElement.NDepend.CodeModel.ExtensionMethodsHelpers.GetNbLinesOfCode_GuaranteedIfPDBFound returns null.
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
EffortToDevelop Method