NDepend.API Documentation
TaggedWithAttribute<TTagged> Method
NDepend.CodeModel Namespace > ExtensionMethodsSequenceUsage Class : TaggedWithAttribute<TTagged> Method
The tagged code elements' type that is IAttributeTarget or that implements IAttributeTarget, being one of IMethod, IField, IType or IAssembly type.
This sequence of code elements.
The type attribute that tags code elements in the returned sequence.
Returns a sub-sequence of this sequence codeElementsTagged, containing only code elements tagged with typeAttribute .
Syntax
[Extension()]
public static IEnumerable<TTagged> TaggedWithAttribute<TTagged>( 
   IEnumerable<TTagged> codeElementsTagged,
   IType typeAttribute
)
where TTagged: class, IAttributeTarget

Parameters

codeElementsTagged
This sequence of code elements.
typeAttribute
The type attribute that tags code elements in the returned sequence.

Type Parameters

TTagged
The tagged code elements' type that is IAttributeTarget or that implements IAttributeTarget, being one of IMethod, IField, IType or IAssembly type.
Remarks
This extension method has a O(codeElementsTagged.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

ExtensionMethodsSequenceUsage Class
ExtensionMethodsSequenceUsage Members
HasAttribute Method
AttributeClassesThatTagMe Property
TaggedWithAnyAttributes<TTagged> Method
TaggedWithAllAttributes<TTagged> Method
HasAttribute Method