C# fragment predefined variables
In your C# code fragment, the package, engine and log variables are available.
package-
This variable, of type
Tridion.ContentManager.Templating.Package, represents the package that the Template Building Block can process. This is both an input and an output parameter. engine-
This variable, of type
Tridion.ContentManager.Templating.Engine, represents the templating engine on which you can run utility functions. log-
This variable, or type
Tridion.ContentManager.Templating.TemplatingLoggerTemplatingLogger, represents the log to which your code can log messages.
For more information about these variables and the information and functionality they expose, refer to Templating coding concepts.