D. Methods to Convert VB to C# - SwinbeeMiles/MyBattleship GitHub Wiki

Documented by: Toh Jie Jin

Online converter: (Source - http://converter.telerik.com/), (https://codeconverter.icsharpcode.net/)

Pros -

  • Easy to access and use
  • No need to download anything to use
  • Provide side to side review upon conversion

Cons -

  • Does not accept files (have to copy and paste codes into the website yourself one at a time)
  • Might not be accurate/reliable

Update: This converter has been disused due to its high inaccuracy when converting

Add-on software in Visual Studio: (Source - https://github.com/icsharpcode/CodeConverter)

Pros -

  • Can control how much codes you want to convert at once which mean it can complete conversion more quickly than the online converter
  • Frequently updated represents it might be more reliable and accurate than an online converter
  • Uses another output window for review
  • Open-source

Cons -

  • Uses Visual Studio whereas this project uses Xamarin
  • Requires a considerable amount of setup

External stand-alone software: (Source - http://vbconversions.com/)

Pros -

  • High quality and very accurate
  • Often updated
  • Download and use instantly no need to for complicated setup like the add-on software.

Cons -

  • Software has to be paid for, free software is provided but the functions are limited.
  • Need to learn how to navigate through the interface and utilise the features provided before being able to start converting.

This converter was mainly used by the team for the conversion

Things to note:

There is no perfect conversion, codes might need a little to a lot of adjustment to make it run properly and as expected depending on the state of the code that is to be converted.