#region CS to VB improvement required

7 posts, 0 answers
  1. dhlennon
    dhlennon avatar
    32 posts
    Member since:
    Oct 2006

    Posted 29 Apr 2007 Link to this post

    These do not convert correctly

    example:

    (c#)
    #region Instance Fields
    ..
    #endregion

    when converted to VB remain unaltered.
    In VB should be

    #Region "Instance Fields"
    ..
    #End Region

    hence, converter needs to place region name in quotes in opening statement, and add space betwen "end" and "region" in closing clause


  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 23 May 2007 Link to this post

    Dhlennon-

    That is a great observation. Unfortunately, this is a converter complier issue specific to NRefactory so we need to channel this info to the SharpDevelop.net developers. Please visit the Sharp Develop forums and help the NRefactory devs improve the open source engine.

    Thanks for the great feedback.

    Thanks~
    Todd
  3. Chandan
    Chandan avatar
    1 posts
    Member since:
    Apr 2007

    Posted 01 Jun 2007 Link to this post

    Yes, this converter is not able to work fully. I am able to convert all the codes. I am trying to convert the VB to C# but display error messge. Says check your original code for some error but my original vb code is well running in my project.
  4. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 01 Jun 2007 Link to this post

    Chandan-

    That is interesting. Can you please provide more details about what doesn't work for you? I can't really do much to address the problem based on your current description, but with some more info we might be able to help.

    Thanks~
    Todd
  5. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 12 Jul 2007 Link to this post

    Dhlennon-

    Just a quick update: the Converter has been updated and it now handles #Region conversions much better than before. Read all about the new updates here:

    http://telerikwatch.com/2007/07/

    converter-updated-new-batch-mode-added.html

    Hope you enjoy the updates!

    Thanks~
    Todd
  6. Dragoljub
    Dragoljub avatar
    26 posts
    Member since:
    Feb 2008

    Posted 22 Jan 2009 Link to this post

    Region still does not work - no quotes?
  7. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 22 Jan 2009 Link to this post

    @dragoljub- Indeed, I can replicate the problem. And a quick check of the NRefactory engine suggests that this conversion should work. I will take a look at our implementation of NRefactory and update the code base to handle these conversions properly. I'll update this thread when the conversions have been deployed.

    Thanks for re-raising the issue!

    -Todd
Back to Top