CodeSmith Generator ships with a sample project, CodeSmith.CustomProperties, that includes some useful property types for your templates:

You can find this project in your extracted samples folder (Documents\CodeSmith Generator\Samples\<VERSION>\Projects\CSharp\CustomPropertiesSample).