Metalama 1.0 / / Metalama Documentation / Conceptual Documentation / Creating Aspects / T# Templates

T# Template

Code templates in Metalama are written in a dialect of C# called T#. The syntax of T# of 100% compatible with C#, but T# is compiled differently.

This chapter contains the following articles:

Article Description
T# Templates: Overview This article is an introduction to T#, the template language of Metalama.
Writing compile-time code This article describes which subset of the C# language can be used as compile-time code, and how to build templates with rich compile-time logic.
Dynamically generating run-time code This article explains different techniques to generate run-time code dynamically
Template Parameters and Type Parameters This article explains how to pass parameters (including generic parameters) from the BuildAspect method to the template.
Debugging Aspects This article explains how to debug templates.