Couple of issues

2 posts, 0 answers
  1. Jose Simas
    Jose Simas avatar
    35 posts
    Member since:
    Mar 2009

    Posted 05 Apr 2010 Link to this post


    This is a great tool you guys have here! I found a couple of issues that you may want to correct when converting from c# to vb:

    1. Regions are not translated properly, for example:

    #region Implementation of IMyInterface

    translates to 

    #Region Implementation of IMyInterface

    and should translate to:

    #Region "Implementation of IMyInterface"

    2. Imports nested inside a namespace are not moved to the top of the file in vb, for example:

    namespace MyNamespace
        using System;
        using System.Data;

    Converts to:

    Namespace MyNamespace
    Imports System
    Imports System.Data
    End Namespace

    And should translate to:

    Imports System
    Imports System.Data
    Namespace MyNamespace

    End Namespace

    I hope this helps.

  2. Todd
    Todd avatar
    66 posts

    Posted 16 Apr 2010 Link to this post

    Hi Jose Simas,

    Thanks for the feedback. These conversion issues are related the underlying conversion engine (NRefactory, from the SharpDevelop project), but we'll definitely see what we can do to address them. In the mean time, it's always valuable to post feedback in the SharpDevelop community forums, too, so I encourage you to do that.

    Thanks for using the Code Converter.


Back to Top