Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
It's already a string... why use ToString()?
Message
De
02/04/2002 19:58:41
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00639339
Message ID:
00640173
Vues:
24
>If the compiler complains it means it can't implicitly convert.

Ah, I wasn't aware that the compiler was failing. That still leaves my curiousty. For example:
String x = "MyString";
this.TextBox1.Text = x;
this.TextBox1.Text = x.ToString();
Both work, correct? Is there any difference? Is the ToString() optimizing the code, or slowing it down, or neither?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform