/ Published in: C#
Useful for detecting when a string is really empty.
Expand |
Embed | Plain Text
string result = " \n\n \r \n\n"; result = result.TrimEnd('\r', '\n', ' '); // result = ""
You need to login to post a comment.
Useful for detecting when a string is really empty.
string result = " \n\n \r \n\n"; result = result.TrimEnd('\r', '\n', ' '); // result = ""
You need to login to post a comment.