Code Conversion Tools - ThindAmrit17/Battleship GitHub Wiki

Converting Code from VB to C#

Premise

Converting the codebase from VisualBasic to C# can either be done manually or automatically via code conversion tools. Manual conversion requires knowledge in both VB and C# syntax, and requires time and effort. It is however the most reliable and accurate method. Given our time constraints, we have decided to opt for the automatic solution.

Code Conversion Tools

Many code conversion tools exist either online or as software. Here is a list of some of the tools we have found, along with pros and cons for each.

Telerik Code Converter
+ Allows batch conversion - no copy-pasting code needed, just upload individual .vb or .cs files, or an entire project as a .zip archive
+ Fast conversion rate
+ Free

VBConversions
+ Accurate conversion
+ Shows detailed conversion reports
+ Allows conversion from the command line without GUI
- Paid software with 15 day trial
- 2000 line limit per project for trial accounts

Convert.NET for Visual Studio
+ Reliable and accurate
+ Replicates code structure perfectly
- Requires Visual Studio, which is Windows-only

Result

We have decided to use the Telerik Code Converter due to its ease of use (copy-paste or upload), accessibility (for group members working on different platforms) and relative accuracy (very reliable and accurate for a free service).

⚠️ **GitHub.com Fallback** ⚠️