Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为新员工创建一个程序,在其中输入他们的姓名和其他一些信息,它会输出一个欢迎/新员工信息文档。
我似乎记得有一些东西类似于我可以使用的文档对象(我猜类似于StringBuilder)。
StringBuilder
.NET Framework 2 或 3 中是否已经包含这样的东西?
假设您只使用文本文件,则可以只使用 System.IO 命名空间中的 StringWriter 类。
(StringWriter 对象的构造函数之一是 StringBuilder)
不,那里没有!