Return to Snippet

Revision: 40009
at January 25, 2011 02:29 by dotNetkow


Initial Code
string result = "
\n\n \r   \n\n";
result = result.TrimEnd('\r', '\n', ' ');
// result = ""

Initial URL


Initial Description
Useful for detecting when a string is <b>really</b> empty.

Initial Title
Remove carriage return, newline, and spaces from string

Initial Tags
c#

Initial Language
C#