Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Char[] to string
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Char[] to string
Divers
Thread ID:
01039893
Message ID:
01039893
Vues:
56
There has to be an easier method to convert a char array to a string. Currently I loop through the char array and build my string on char at the time.
char[] ca = new char[3];
ca[0] = 'a';
ca[1] = 'b';
ca[2] = 'c';

string myString = "";
for (int i = 0; i<ca.Length;i++)
{
  myString = myString + ca[i].ToString();
}
Einar
Semper ubi sub ubi.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform