Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code.​Declaration­Builders / IDeclaration­Builder / Add­Attribute

Method AddAttribute

AddAttribute(AttributeConstruction)

Adds a custom attribute to the current declaration.

Declaration
void AddAttribute(AttributeConstruction attribute)
Parameters
Type Name Description
AttributeConstruction attribute