That's were StringBuilder are efficient compare to concatenation. The compiler wont do the optimisation within loops