Open sandboxFocus

Interface IMetaExtension

Marks an object that a Metalama extension makes available to a template through GetExtension<T>() and TryGetExtension<T>(out T?).

Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IMetaExtension
Remarks

An extension, for instance the interceptors of Metalama Premium, adds information that the standard meta API does not provide. The information applies to the declaration that the template implements. A template that is called by another template sees the extensions of the calling template.

An extension typically exposes its object through a C# 14 extension property of meta, so that the template reads it as an ordinary member of meta.

Extension Methods