csharp remove crlf from string

Code Example - csharp remove crlf from string

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