add example of C#-like generated code