Both the Array class and the collection classes have a 32-bit indexer, so that would say a max of 4gb number of items. You would probably run into memory issues long before that limit.
But the Array class also has a LongLength property, which returns a 64-bit value. This represents the length in all dimensions of the array.
Neither storage method will have a problem with only 240 items. What will help you decide which to use is how you plan on accessing the data once it's in one of them. If you plan on accessing it by ordinal (index), Array is good. If you plan on accessing it by a key of some kind, then a collection (HashTable, etc) would be good.
CHip H.
____________________________________________________________________ Click here to learn Ways to help with Tsunami Relief If you want to get the best response to a question, please read FAQ222-2244 first
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.