Auto Implemented Properties

2 posts, 0 answers
  1. Joel
    Joel avatar
    1 posts
    Member since:
    Feb 2012

    Posted 23 Mar 2012 Link to this post

    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)
            Return _ChildBinds
        End Get
        Set(ByVal value As System.Collections.Generic.Dictionary(Of String, System.Windows.Forms.BindingSource)
            _ChildBinds = value
        End Set
    End Property

  2. Andrey
    Andrey avatar
    836 posts

    Posted 28 Mar 2012 Link to this post


    This the the translated code:

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

    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.

Back to Top