[csharp] refactor error handling: extract UnexpectedTokenError
[csharp] refactor error handling: extract UnexpectedEOFError