Yay! I would love to have a look at your generator. Must be a nice thing
LOL well actually the code looks totally awful at the moment. This is mostly due to the fact that writing C# code from C# is not that easy using the CSParser. The API is a bit inconsistent. It's very tempting to write a better abstraction over the top to simplify things.
At the moment it's like building an XML document using the procedural DOM, rather than XLINQ's new expression building model. Basically yuck!
I'm sure given some hardcore refactoring I can sort things out.