码迷,mamicode.com
首页 > Windows程序 > 详细

c#使用Split分割换行符 \r\n

时间:2020-04-21 18:11:57      阅读:90      评论:0      收藏:0      [点我收藏+]

标签:方法   new   itop   ons   spl   换行   clear   body   gpo   

 
c# 使用Split分割 换行符,方法如下(其余方法有空再添加):
 
string str = "aa" + "\r\n" + "bb";
 
string[] ss = str.Split(new string[] { "\r\n" }, StringSplitOptions.None);

c#使用Split分割换行符 \r\n

标签:方法   new   itop   ons   spl   换行   clear   body   gpo   

原文地址:https://www.cnblogs.com/jj123/p/12746273.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!