C# 中几种换行符

1.Windows 中的换行符" "

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

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

4.Console 的换行符为 " "

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

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

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