Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two questions on collections
Message
From
01/02/2004 13:49:30
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Two questions on collections
Miscellaneous
Thread ID:
00872791
Message ID:
00872791
Views:
53
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
Next
Reply
Map
View

Click here to load this message in the networking platform