Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String collection versus string array
Message
From
18/08/2009 08:07:03
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01418535
Message ID:
01418621
Views:
39
>Hi Tim,
>
>string[] myStrings = new string[];
>myStrings[0] = "One";
>
>One important difference between Arrays and collections, lists, etc. is that an array has a fixed size. While you can redimension an array, this involves copying the entire array into a new location and therefore isn't necessarily very fast.

Yes, good point, part of why I wanted to use a collection for this. Thanks for your input, it is very good.
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform