/ Published in: C#
Useful for detecting when a string is <b>really</b> empty.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
string result = " \n\n \r \n\n"; result = result.TrimEnd('\r', '\n', ' '); // result = ""