NDepend.API Documentation
IssuesAdded(ICodeElement) Method
NDepend.Reserved.CQLinq Namespace > ExtensionMethodsCQLinqIssuesSetDiff Class > IssuesAdded Method : IssuesAdded(ICodeElement) Method
The code element object can be the NDepend.CodeModel.ICompareContext.NewerVersion<T> or NDepend.CodeModel.ICompareContext.OlderVersion<T> of the same code element.
Gets all issues on codeElement that have no equivalent in OlderIssuesSet. These issues are considered as added.
Syntax
[Extension()]
public static IEnumerable<IIssue> IssuesAdded( 
   ICodeElement codeElement
)

Parameters

codeElement
The code element object can be the NDepend.CodeModel.ICompareContext.NewerVersion<T> or NDepend.CodeModel.ICompareContext.OlderVersion<T> of the same code element.
Exceptions
ExceptionDescription
This extension method cannot be called from a program consuming NDepend.API. In such context, the method NDepend.Issue.IIssuesSetDiff.NDepend.Issue.IIssuesSetDiff.IssuesAdded must be called instead.
Remarks
The issues of NewerIssuesSet and OlderIssuesSet are paired when they share the same NDepend.Issue.IIssue.Rule and the same CodeElement.
If NDepend.CodeModel.ICompareContext.OlderVersion<T> of codeElement is null, all issues on codeElement are returned.
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