Fixed generated semantics for C#.