MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​Declaration­BuildersIDeclaration­Builder
Open sandboxFocus

IDeclarationBuilder Interface

Allows to complete the construction of a declaration that has been created by an advice.

Namespace: Metalama.Framework.Code.DeclarationBuilders
Assembly: Metalama.Framework.dll
Syntax
public interface IDeclarationBuilder : IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable

Properties

Name Description
IsFrozen

Gets a value indicating whether the builder has been frozen. When the value is true, modifications can no longer be performed.

Methods

Name Description
AddAttribute(AttributeConstruction)

Adds a custom attribute to the current declaration.

Freeze()

Freezes the declaration so that modifications can no longer be performed.

RemoveAttributes(INamedType)

Removes all custom attributes of a given type from the current declaration.