Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# to VB.NET
Message
 
À
04/01/2008 13:54:58
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
VB 8.0
Divers
Thread ID:
01279466
Message ID:
01279553
Vues:
8
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform