Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
It's already a string... why use ToString()?
Message
From
02/04/2002 19:58:41
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00639339
Message ID:
00640173
Views:
23
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform