Using the .NET Compact Framework Collections
The .NET Framework offers a number of special-purpose collection classes that offer additional capabilities over simple arrays.
Creating an ArrayList Collection
The ArrayList collection dynamically resizes at run time as you add new members. You can create an ArrayList collection using the default ArrayList constructor, in which case the default initial capacity of 16 is used, or you can specify the initial capacity using the following constructor:
ArrayList(int initialcapacity)
If you add an item to the collection so that the number of items exceeds the capacity, the capacity is doubled. If you can estimate the maximum size of the collection at construction, you can avoid resize operations at run time. ...
Get Microsoft® .NET Compact Framework (Core Reference) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.