string new line c# code example
Example 1: c# how to add newline on text box
string newLine = Environment.NewLine;
sample = "I am"+newLine+"coming"+newLine+" from " +newLine+ "Forget Code";
Example 2: c# string newline
string text = "fkdfdsfdflkdkfk@dfsdfjk72388389@kdkfkdfkkl@jkdjkfjd@jjjk@";
text = text.Replace("@", "@" + System.Environment.NewLine);
Example 3: console writeline new line c#
Console.WriteLine("This is a line");
Console.WriteLine();
Console.WriteLine("This is another line");