I'm working in VS2010 on a codebase that started (15 years ago) in Fortran, got ported to VB6, then autotranslated to VB.Net, and finally autotranslated to C# by C-Sharpener. (Stop laughing, it's not that funny...)
As you can imagine, the translated code has some oddities. Two of the annoying ones are: 1) declarations of all variables at the top of each function, 2) C-Sharpener has added VB-style initialization code to each declaration, as VB guarantees initialized variables and C# doesn't.
I can use the context menu items "Remove redundant initializer" and the move/joins to fix the issues by hand. This is tedious across a 100k line codebase :-). How can I automate it?
Thanks in advance for any ideas,