StringWriter or StringBuilder

后端 未结 7 1980
盖世英雄少女心
盖世英雄少女心 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:22

    A StringWriter is used to write text to a file memory and a StringBuilder is used to append strings together in a memory-efficient manner.

提交回复
热议问题