Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# to VB.NET
Message
 
To
04/01/2008 13:54:58
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
VB 8.0
Miscellaneous
Thread ID:
01279466
Message ID:
01279553
Views:
9
>I placed a large code block in a C# to VB.NET converter, and it converted fine except for the following propery.
>
>
>   [ConfigurationProperty("Employees", IsDefaultCollection = true)]
>   public EmployeeCollection Employees
>   {
>
>      get { return (EmployeeCollection) base["Employees"]; }
>
>   }
>
>
>Can somebody convert this for me. It's the base word that's throwing me off. Let me know if you need to see more code.


Maybe:
<ConfigurationProperty("Employees", IsDefaultCollection = True)> 
Public ReadOnly Property Employees As EmployeeCollection
   Get
      Return CType(MyBase("Employees"), EmployeeCollection)
   End Get
End Property
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform