Templates

I've collected a few CodeSmith templates that I wrote to make my life a bit easier. So far there's just two, IndexedCollection and Collection. I'm very picky about the way I code, and when I implement standard interfaces I like having all the MSDN documentation in XML comments in the source.
 

Installation

Download the Collections Template ZIP File, extract it wherever you want, and then open the templates with CodeSmith Explorer.
 

Usage

ItemType

The type of item being contained in the collection.

Serializable

Whether to generate serialization and deserialization code.

IncludeNamespaces

Whether to use namespaces in the generated code.

TargetNamespace

The namespace where the collection and ItemType reside.

ParentType

If entered, indicates that the collection and ItemType have a SetParent method taking this type as a parameter.

KeyName

The name of the property on ItemType that contains the value to key the collection by.

KeyType

The type of said key property.