|
Re: The immutability of strings
It creates 3. One ("James"), two (" is testing this"), and a third to store the result ("James is testing this")
Nursing the efficiency of String vs. StringBuilder is often not going to get you much benefit. Of course, there are loops that are vastly improved by the change, but often it's easier to just use String.
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
|