StringWriter or StringBuilder

后端 未结 7 1871
盖世英雄少女心
盖世英雄少女心 2020-12-08 00:17

What is the difference between StringWriter and StringBuilder and when should I use one or the other?

7条回答
  •  时光说笑
    2020-12-08 00:30

    StringBuilder is used to mass string concatenation. It's more effective for more then 5 string, As far as i know, then String.Concat(). Also it can be used with specific format (.AppendFormat())

提交回复
热议问题