John Baird
Coatesville, Pennsylvania, United States
>I don't believe it will go this easy in C# due to the stronger typing. This is one of those differences beween C# and VB that Bill Kuhn was telling me about.
>
>Cecil
>
>>Because you're using the integer in a string concatenation, I think .NET handles the .ToString for you automagically. I know, it seems like it shouldn't do that conversion for you like that, but I guess for a simple string concatenation it will do that.
>
>>~~Bonnie
The fact is that string concatenation knows that all elements must be string and does an implicit conversion for you. However, best practice is to use the StringBuilder class for concatenating strings.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only