Redefined title parsing in C#.

- Don't require public/private/protected before definitions.
- Rely on `ident+ ident(` to detect functions
- Use standard class names 'function' and 'params'

Fixes #539.