Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ilist Implementation
Message
De
06/10/2003 11:13:37
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Ilist Implementation
Divers
Thread ID:
00835387
Message ID:
00835387
Vues:
39
I am translating a code from C# to VB, is a class that implements the IList interface, but i have a problem with the Item property.

I must implement the Item property of the Ilist interface

C#
object IList.this[int index]

VB
Property Item(index As Integer) As Object Implements System.Collection.Ilist.Item

This is the code

but class also has this property

C#
public SomeItem this[int index]

Code produced bye a translator

VB
Default Public Property Item(index As Integer) As SomeItem

but this is a sintax error in VB, because this two properties only differ from its return value.

How can i solve this?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform