"if(car[Constants.Wheels"].ContainsKey[Constants.FrontLeftWheel])"
Now unfortunately there was not just one constants file, this application numbered nearly 60 projects and each one possessed a constants file and people added strings when they needed to access a new item from the data model.
public class Constants { string FrontLeftWheel = "FrontLeftWheel; }
I was given the painful task of replacing every single constant and string in the code with new constants generated from the data model. This probably involved making something along the lines of 40,000 replacements. Luckily I remembered a post by Eric Lippert on Roslyn. Roslyn helped me replace all of the old constants with constants generated from the new data model based on a few heuristics to order by best matches but Roslyn saved me months of mind numbing work so I'ma HUGE fan.
Could you provide some highlevel details of the implementation? TIA!
Sure I'll write up a blog post this weekend with the high level details and link to it here when I'm finished.
It rewrites code to match their coding style.
We used the xunitconverter (which is part of the codeformatter repo) recently to convert a whole bunch of old MS Test based unit tests to xUnit. https://github.com/dotnet/codeformatter/tree/master/src/XUni...
I would be great if this would trigger a flurry of VBA-style IDE to use VB/C#/F# in Excel or any major non Microsoft software!