Just some code generation in C#