NDepend.API Documentation
ToForeColor Method
NDepend.TechnicalDebt Namespace > ExtensionMethodsDebt Class : ToForeColor Method
The DebtRating value.
Convert the debtRating to a fore color.
Syntax
[Extension()]
public static NdpColor ToForeColor( 
   DebtRating debtRating
)

Parameters

debtRating
The DebtRating value.
Remarks
Black is returned for DebtRating.DebtRating.A, DebtRating.B, DebtRating.C and DebtRating.D.
White is returned for the value DebtRating.DebtRating.E.
Requirements

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

See Also

Reference

ExtensionMethodsDebt Class
ExtensionMethodsDebt Members