Worth a look
I may be late to the party, but CodeSmith is a pretty darn cool application. CodeSmith is a template-based code generator that has a syntax that looks like ASP.NET but can be used to generate any kind of application code. If you haven't seen it yet, you should definitely check it out. It isn't really a replacement for generics in C#, but it can help out with the same class of problems.