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 © 2024  | Terms of Use | Privacy | Home