Answers for "c# string remove line breaks"

C#
0

remove carriage returns from string c#

// Remove newlines from both sides of the 'example' string variable
string cleaned = example.Trim('r', 'n');
Posted by: Guest on August-19-2020

Code answers related to "c# string remove line breaks"

C# Answers by Framework

Browse Popular Code Answers by Language