Fix typo
csharp: Refactor generator into classes