Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class StringExtensions
- {
- public static string RemoveLineBreaks( this string lines )
- {
- return lines.Replace( "\r", "").Replace( "\n", "" );
- }
- public static string ReplaceLineBreaks( this string lines, string replacement )
- {
- return lines.Replace( "\r\n", replacement )
- .Replace( "\r", replacement )
- .Replace( "\n", replacement );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement