Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Open Source Projects > Code Converter > Auto Implemented Properties

Not answered Auto Implemented Properties

Feed from this thread
  • Joel avatar

    Posted on Mar 23, 2012 (permalink)

    I tried to convert a VB class to C# and the converter failed with this error:

    CONVERSION ERROR: Code could not be converted. Details:
    -- line 113 col 16: "Get" expected

    Line 113 is the start of a new property, just after an auto implemented property. Below is an example.

    ' auto implemented property
    Public Property ParentBind() As System.Windows.Forms.BindingSource
    ' below is line 113
    Public Property ChildBinds() As System.Collections.Generic.Dictionary(Of String, System.Windows.Forms.BindingSource)
        Get
            Return _ChildBinds
        End Get
        Set(ByVal value As System.Collections.Generic.Dictionary(Of String, System.Windows.Forms.BindingSource)
            _ChildBinds = value
        End Set
    End Property

    Thanks!

    Reply

  • Andrey Andrey admin's avatar

    Posted on Mar 28, 2012 (permalink)

    Hello,

    This the the translated code:

    public System.Windows.Forms.BindingSource ParentBind{get;set;}
    public System.Collections.Generic.Dictionary(string, System.Windows.Forms.BindingSource) ChildBinds
    {
        get
        {
            return _ChildBinds;
        }
        set
        {
            _ChildBinds=value;
        }
    }

    Regards,
    Andrey
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Open Source Projects > Code Converter > Auto Implemented Properties