We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Similar to .Trim() except that it null checks the string first. If the string is already null, it will just return null.
string name1 = " test "; string name1 = name1.SafeTrim(); // name1 == "test" string name2 = null; string name2 = name2.SafeTrim(); // name2 == null
There was an error while loading. Please reload this page.