Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copyto array problem
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Copyto array problem
Divers
Thread ID:
01113072
Message ID:
01113072
Vues:
91
My code:

string[] Items = new string[ListBox2.Items.Count];
ListBox2.Items.CopyTo(Items, 0);

The error:

System.InvalidCastException: At least one element in the source array could not be cast down to the destination array type.

Not quite sure why I'm getting this one. I'm using the exact same code for a windows app and it works fine?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform