NDepend.API Documentation
MatchedCodeElements Property
NDepend.CodeQuery Namespace > IQueryExecutionSuccessResult Interface : MatchedCodeElements Property
Gets a collection of code elements matched by the code query. If IsSingleScalarResult is true or if the query is matching issues or rules, gets an empty collection.
Syntax
IReadOnlyList<ICodeElement> MatchedCodeElements {get;}
Remarks
This method is a facility to avoid extracting matched code elements from this.Records first column.
This extension method has a O(this.Records.Count) time complexity.
Notice that a IQueryExecutionSuccessResult object can be modified when calling a ExtensionMethodsQuery.ExtensionMethodsQuery.GetIssues overload that takes a suppressedMessage set. In such condition the list of code-elements returned can be different than the one returned before calling GetIssues().
Requirements

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

See Also

Reference

IQueryExecutionSuccessResult Interface
IQueryExecutionSuccessResult Members
Records Property