Table of Contents

Interface IAttributeTarget

Namespace
NDepend.CodeModel
Assembly
NDepend.API.dll

Represents a code element that can be tagged by an attribute. This interface is implemented by IMethod, IField, IType and IAssembly.

public interface IAttributeTarget : ICodeElement, IUsed
Inherited Members
Extension Methods

Properties (2)

AttributeClassesThatTagMe

Returns a sequence of attribute classes that tag this code element.

IEnumerable<IType> AttributeClassesThatTagMe { get; }

Property Value

IEnumerable<IType>
See Also

AttributeTagsOnMe

Returns a sequence of attribute tags on this code element.

IEnumerable<IAttributeTag> AttributeTagsOnMe { get; }

Property Value

IEnumerable<IAttributeTag>
See Also

Methods (2)

AttributeTagsOf(IType)

Gets the IAttributeTag of type attributeClass tagging this code element.

IEnumerable<IAttributeTag> AttributeTagsOf(IType attributeClass)

Parameters

attributeClass IType

The attribute class that potentially tags this code element.

Returns

IEnumerable<IAttributeTag>
See Also

HasAttribute(IType)

Returns true if this code element is tagged by attributeClass.

bool HasAttribute(IType attributeClass)

Parameters

attributeClass IType

The attribute class that potentially tags this code element.

Returns

bool
See Also