Telerik
Skip Navigation LinksHome / Community / Forums / Open Source Projects > Code Converter > properties global problem

Not answered properties global problem

Feed from this thread
  • Posted on Jan 23, 2009 (permalink)

    This problem happens in almost all converts

    from C#

    public string myVar { getset; } 

    to VB:

    Public Property myVar() As String 
        Get 
        End Get 
        Set 
        End Set 
    End Property 

    witch is very wrong as you can see, it should be:

    Private _myVar As String  
    Public Property myVar() As String  
      Get  
        return _myVar  
      End Get  
      Set  
        _myVar = value  
      End Set  
    End Property  

    glad to help

    Reply

  • Todd Anglin Master Todd Anglin's avatar

    Posted on Jan 23, 2009 (permalink)

    Bruno-

    Thanks for reporting the issue. You are correct- the Code Converter does not handle automatic properties very well. This is a problem in the root coversion engine, NRefactory. In fact, you verfiy this by running your conversion the SharpDevelop converter (the people that work on building NRefactory):


    I'd suggest sending the feedback via the NRefactory bug reporting forum, which is located here:

    http://community.sharpdevelop.net/forums/19/ShowForum.aspx

    Hopefully that helps. I apologize that the converter cannot handle this new C# feature. Hopefully the NRefactory project will be able to find a way to support automatic properties in the future!

    -Todd

    Reply

Back to Top

Skip Navigation LinksHome / Community / Forums / Open Source Projects > Code Converter > properties global problem

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.