Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two questions on collections
Message
De
01/02/2004 13:49:30
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Two questions on collections
Divers
Thread ID:
00872791
Message ID:
00872791
Vues:
54
Hi, all...

These are probably simple and I just need to research the help file a little more, but...

1) I want to develop something where I store a collection of controls inside a collection array. So I'm doing something like...

private Control[] loMyCollection = new Control[300]

loMyCollection[0] = (Control) object1;
loMyCollection[1] = (Control) object2;

How can I code the create so that I don't have to specify a limit? I may not know until runtime how many controls I'll need to stuff into it. Basically, I guess I'm asking how to do the equivalent of a dynamic array.

2) Can a collection contain a reference to other collections?

Thanks,
Kevin
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform