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

C# 中几种换行符

时间:2016-11-24 07:14:19      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:lin   message   系统   系统默认   env   unix   默认   show   sys   

1.Windows 中的换行符"\r\n"

2.Unix/Linux 平台换行符是 "\n"。

3.MessageBox.Show() 的换行符为 "\n"

4.Console 的换行符为 "\n"

换行符还因平台差异而不同。

为保持平台的通用性,可以用系统默认换行符 System.Environment.NewLine。

C# 中几种换行符

标签:lin   message   系统   系统默认   env   unix   默认   show   sys   

原文地址:http://www.cnblogs.com/testsec/p/6095663.html

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