The parameter passed to AmendType(ITypeAmender). Provides capabilities to query members of the containing type, add advice (such as overriding or introducing members), configure options, report diagnostics, and validate architecture.
Namespace: Metalama.Framework.Fabrics
Assembly: Metalama.Framework.dll
Syntax
public interface ITypeAmender : IAmender<INamedType>, IAmender, IQuery<INamedType>, IQueryRemarks
Through this interface, you can access all members of the containing type using LINQ-like queries through the IAmender<T> base interface, and add advice directly to the type's members using the Advice property. This allows type fabrics to function as type-level aspects without creating a separate reusable aspect class.
Properties
| Name | Description |
|---|---|
| Advice | Gets an object that provides methods for creating advice, such as overriding methods/properties/events, introducing new members, implementing interfaces, adding initializers, and applying contracts. This allows type fabrics to directly advise the containing type without creating a separate aspect. |
| Type | Gets the target type of the current fabric (i.e. the declaring type of the nested type). |