cs: Change the 'route' struct to class

About 15% faster on Mono x64.