Open sandboxFocus

Method PlaceInStaticClass

PlaceInStaticClass(string?)

Synthesizes the method in an internal static class that Metalama generates in the project. It is the default placement, with the class MetalamaInterceptors of the global namespace.

Declaration
ITemplateInterception PlaceInStaticClass(string? fullName = null)
Parameters
Type Name Description
string fullName

The full name of the class, including its namespace, or null for the class MetalamaInterceptors of the global namespace. The interceptions that give the same full name synthesize their methods in the same class. The namespace is created when it does not exist, and a numeric suffix is added to the name of the class when a type of that name already exists.

Returns
Type Description
ITemplateInterception
Remarks

The method is internal. The generated class is not in the types of the compilation. A full name that is not valid is reported as LAMA1024.