StringBuilder.Append Vs StringBuilder.AppendFormat

前端 未结 9 1548
轮回少年
轮回少年 2021-01-31 15:30

I was wondering about StringBuilder and I\'ve got a question that I was hoping the community would be able to explain.

Let\'s just forget about code readability, which o

9条回答
  •  你的背包
    2021-01-31 16:10

    1 should be faster becuase it's simply appending the strings whereas 2 has to create a string based on a format and then append the string. So there's an extra step in there.

提交回复
热议问题