C# newline

Usually \n represents a new line in C# string.

string str="C# strings new line\n";

Using System.Environment.NewLine:
string str = "C# strings new line" + System.Environment.NewLine;



endmemo.com © 2017  Terms of Use | Home