Metalama//API Documentation/Aspect API/Metalama.​Framework.​Code/Declaration­Enhancements<T>
Open sandboxFocus

Class DeclarationEnhancements<T>

Gives access to the aspects and annotations on a declaration.

Inheritance
DeclarationEnhancements<T>
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class DeclarationEnhancements<T> : ValueType where T : class, IDeclaration
Type Parameters
Name Description
T

Methods

Name Description
GetAspects<TAspect>()

Gets the set of instances of a specified type of aspects that have been applied to a specified declaration.

HasAspect(Type)
HasAspect<TAspect>()