NDepend.API Documentation
DebtDiff(IRule) Method
NDepend.Reserved.CQLinq Namespace > ExtensionMethodsCQLinqIssuesSetDiff Class > DebtDiff Method : DebtDiff(IRule) Method
The rule object can be the NewerVersion(IRule) or OlderVersion(IRule) of the same rule.
Gets NewerIssuesSet.Debt(IRule) of NewerVersion(IRule) of rule, minus OlderIssuesSet.Debt(IRule) of OlderVersion(IRule) of rule.
Syntax
[Extension()]
public static Debt DebtDiff( 
   IRule rule
)

Parameters

rule
The rule object can be the NewerVersion(IRule) or OlderVersion(IRule) of the same rule.
Exceptions
ExceptionDescription
This extension method cannot be called from a program consuming NDepend.API. In such context, the method NDepend.Issue.IIssuesSetDiff.DebtDiff(IRule) must be called instead.
Remarks
If NewerVersion(IRule) or OlderVersion(IRule) of rule is null, NDepend.TechnicalDebt.Debt.NDepend.TechnicalDebt.Debt.Zero value is taken instead.
The returned NDepend.TechnicalDebt.Debt value can be positive, zero or negative.
Requirements

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

See Also

Reference

ExtensionMethodsCQLinqIssuesSetDiff Class
ExtensionMethodsCQLinqIssuesSetDiff Members
Overload List