NDepend.API Documentation
ExceptThirdParty<TCodeElement> Method
NDepend.CodeModel Namespace > ExtensionMethodsHelpers Class : ExceptThirdParty<TCodeElement> Method
The code element type that is ICodeElement or that implements ICodeElement.
This sequence of code elements objects.
Filter code elements object from this codeElements sequence. Keeps only code elements for those ICodeElement.ICodeElement.IsThirdParty is false.
Syntax
[Extension()]
public static IEnumerable<TCodeElement> ExceptThirdParty<TCodeElement>( 
   IEnumerable<TCodeElement> codeElements
)
where TCodeElement: class, ICodeElement

Parameters

codeElements
This sequence of code elements objects.

Type Parameters

TCodeElement
The code element type that is ICodeElement or that implements ICodeElement.

Return Value

A sequence of code elements objects with a false value for ICodeElement.IsThirdParty.
Remarks
This extension method has a O(codeElements.Count) time complexity.
Requirements

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

See Also

Reference

ExtensionMethodsHelpers Class
ExtensionMethodsHelpers Members
IsThirdParty Property