C# code generator, runtime library and tests