Interface IAttributeTarget
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
- See Also
AttributeTagsOnMe
Returns a sequence of attribute tags on this code element.
IEnumerable<IAttributeTag> AttributeTagsOnMe { get; }
Property Value
- See Also
Methods (2)
AttributeTagsOf(IType)
Gets the IAttributeTag of type attributeClass tagging this code element.
IEnumerable<IAttributeTag> AttributeTagsOf(IType attributeClass)
Parameters
attributeClassITypeThe attribute class that potentially tags this code element.
Returns
- See Also
HasAttribute(IType)
Returns true if this code element is tagged by attributeClass.
bool HasAttribute(IType attributeClass)
Parameters
attributeClassITypeThe attribute class that potentially tags this code element.
Returns
- See Also