如何在C#的字符串中添加换行符

 

 

  1、strToProcess.Replace("@", "@" + Environment.Newline)

 2、string newString = strToProcess.Replace("@", "@\n");  

 

posted @ 2022-03-17 11:07  苏苏苏en  阅读(10)  评论(0编辑  收藏  举报