Evaluating VB.NET to C# converters - Follow Up

#csharp#vb

Evaluating VB.NET to C# converters - Follow Up

A year ago, I evaluated 4 tools for converting VB.NET code to C# (see blog post).

At that time, I decided on "Instant C#", which I have since used to convert a lot of code.

Unfortunately I have been running into some problems with multi-line text templates.

And so, since my subscription for "Instant C#" just expired, I decided to do another round of tests.

I updated to the test code to include a multi-line text template:

Telerik Code Converter

Free online tool: https://converter.telerik.com

It still cannot convert the date literal, and still neglects to surround the ternary with parentheses. No different than a year ago...

ICSharpCode Converter

Free online tool: https://icsharpcode.github.io/CodeConverter
Also available as a Visual Studio extension: Code Converter (VB - C#)

The online version still removes all code inside the lambda function.

However, the Visual Studio extension now works perfectly with above sample code 😀😀😀

VBConversions

Windows desktop application from https://vbconversions.com

I did not test again since this does not appear to have been updated since my last round of tests a year ago.

Instant C# .

Windows desktop application from https://www.tangiblesoftwaresolutions.com/product_details/vb-to-csharp-converter.html

As mentioned above, Instant C# has problems with multi-line text templates, which was the reason for this follow-up.

Conclusion

Going forward, I will be using the Visual Studio extension Code Converter (VB - C#).

Jesper Høy's
Dev Blog

  • Home (blog posts)
  • About me and this website
  • My developer tech stack
  • My favorite software
  • My favorite online services
  • Cool stuff
  • My side projects
  • Referral codes
  • Our wonderful ice horses