MetalamaAPI documentationAspect APIMetalama.​Framework.​Code­FixesICode­Action­BuilderAdd­Attribute­Async
Open sandboxFocus

ICodeActionBuilder.AddAttributeAsync Method

AddAttributeAsync(IDeclaration, AttributeConstruction)

Adds a custom attribute to a given declaration.

Declaration
Task AddAttributeAsync(IDeclaration targetDeclaration, AttributeConstruction attribute)
Parameters
Type Name Description
IDeclaration targetDeclaration
AttributeConstruction attribute
Returns
Type Description
Task