This is a migrated thread and some comments may be shown as answers.

Auto Implemented Properties

1 Answer 39 Views
Code Converter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joel
Top achievements
Rank 1
Joel asked on 23 Mar 2012, 02:57 PM
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!

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 28 Mar 2012, 12:21 PM
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.

Tags
Code Converter
Asked by
Joel
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or