remove carriage returns from string c#

46

remove carriage returns from string c# -

// Remove newlines from both sides of the 'example' string variable
string cleaned = example.Trim('\r', '\n');

Comments

Submit
0 Comments