Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Aspects / IAspect<T>

Interface IAspect<T>

The base interface for all aspects, with the type parameter indicating to which types of declarations the aspect can be added.

Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
public interface IAspect<in T> : IAspect, ICompileTimeSerializable, IEligible<T> where T : class, IDeclaration
Type Parameters
Name Description
T

Methods

Name Description
BuildAspect(IAspectBuilder<T>)

Initializes the aspect. The implementation must add advice, child aspects and validators using the builder parameter.