/T4GenSamples

Samples from my experience with T4 Code Generators.

T4 Code Generator Samples:

First sample:

Generate a text file using T4, where any text Eg."Hello World!" is written to the file with the suffix '.tt'
The result is a text file with the suffix '.txt' in which the aforementioned text Eg."Hello World!" is present.

Second Sample:

Use C# inside the template file with the tt suffix to help generate the text file.
The example presented is generating a file containing the numbers 1 to 10 generated from a template file

Third sample:

Generate a file containing C# code containing properties within classs, which is generated using T4 Templet

Fourth sample:

Generating a text file with the '.txt' suffix that contains information from Visual Studio, generated at design time through the '.tt' Template file.