Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The CodeTemplate class represents your entire template as it's being processed by CodeSmithCodeSmith Generator . You can work with a CodeTemplate object to interact directly with the CodeSmith engineGenerator engine. For example:

  • Use the GetFileName method to specify the default output file name for a template
  • Use the Render method to render the output of the template
  • Use events of the object to insert your own code into the CodeSmith processing Generator processing cycle
  • Use the Response property to write directly to the template output