Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String collection versus string array
Message
De
18/08/2009 08:07:03
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01418535
Message ID:
01418621
Vues:
38
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform