c# remove newline from string

75

c# remove newline from string -

// Remove all newlines from the 'example' string variable
string cleaned = example.Replace("\n", "").Replace("\r", "");

Comments

Submit
0 Comments