Using .NET Types

The easiest way to define metadata is to use one of the scalar .NET types such as System.String or System.Boolean. To define a property using a .NET type, you use a Property directive. CodeSmith Generator automatically allows editing such scalar types directly in its property sheet when the user executes a template.

Advanced: Using Extended Properties to Define Custom Metadata