MetalamaAPI documentationAspect APIMetalama.​Framework.​Code­FixesICode­Action­BuilderRemove­Attributes­Async
Open sandboxFocus

ICodeActionBuilder.RemoveAttributesAsync Method

RemoveAttributesAsync(IDeclaration, INamedType)

Removes custom attributes of a type, given as an INamedType, from a given declaration and all contained declarations.

Declaration
Task RemoveAttributesAsync(IDeclaration targetDeclaration, INamedType attributeType)
Parameters
Type Name Description
IDeclaration targetDeclaration
INamedType attributeType
Returns
Type Description
Task

RemoveAttributesAsync(IDeclaration, Type)

Removes custom attributes of a type, given as a reflection System.Type, from a given declaration and all contained declarations.

Declaration
Task RemoveAttributesAsync(IDeclaration targetDeclaration, Type attributeType)
Parameters
Type Name Description
IDeclaration targetDeclaration
System.Type attributeType
Returns
Type Description
Task