Home - Visual Basic to C#

This simple tool will transform a piece of Visual Basic Code Syntax to C# Code Syntax. It's only a syntactical transformation that does not extend to narrow conversions of functions and references. It only saves time from the boring repetitive routine that Microsoft should have added as an implicit transformation when pasting code from VB to C#.

  • For instance it converts:
    • Dim MyString AS String to String MyString.
    • Private Sub MySub(obj As Object, boolean_value As Boolean) To private void MySub(Object obj, Boolean boolean_value) {
    • If MyValue > 2 Then to if (MyValue > 2 ) {
    • End Sub, End Function and End If... To }, } and }
    • MyParam = 2 To MyParam = 2; and If MyParam = 2 Then To if (MyParam == 2) {
    • And it adds semicolon to (almost) all the lines that match the proper context
  • Visual Basic:

    Output: (click on area to select it all)

    C#: