The T4 template searches the template's project to look for non-static, classes, with no constructor. A constructor will be added per class that will take all private instance fields of that type as input.

Cecil is a library written by Jb Evain to generate and inspect programs and libraries in the ECMA CIL format. It has full support for generics, and support some debugging symbol format. In simple English, with Cecil, you can load existing managed assemblies, browse all the contained types, modify...
More information