Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Char[] to string
Message
De
11/08/2005 08:56:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01039893
Message ID:
01040172
Vues:
23
>Thank you very much. That was exactly what I needed. I was able to reduce my code with quite a few lines.

Talking about code reduction, although in this case you already have a better solution, if you use a variation of "C", as a matter of principle I wouldn't use the same expression on both sides of the assignment. In other words, I think you should replace:
myString = myString + ca[i].ToString();
with the following:
myString += ca[i].ToString();
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform