1、stringbuilder vs +
一般情况下+的操作编译器会做优化,为stringbuilder操作
问题:
More importantly given we have only 3 properties it might not make a difference,
but at what point do you switch from concat to builder?
答案:
At the point where you're concatenating in a loop - that's usually when the
compiler can't substitute StringBuilder by itself.