Opening a Template

Templates are patterns for generated code. CodeSmith comes with a set of useful templates to get you started. You can also download more templates from the CodeSmith Community, and as you work with CodeSmith you'll develop your own custom templates. For now, click on the plus sign to the left of the CollectionGen folder to see the list of templates stored in this folder.

The .cst file extension stands for "CodeSmith Template." You can probably guess from the names what the various templates do. For example, the HashTable.cst template generates C# code for a hash table class. Double-click this template (or right-click and select Execute) to open it.

Next: Setting Properties