string.TrimRight()

Here are the examples of the csharp api string.TrimRight() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : StringExtensions.cs
with Apache License 2.0
from wangmaosheng

public static string TrimBlank(this string str)
        {
            if (str.IsNullOrEmpty())
            {
                throw new NullReferenceException("字符串不可为空");
            }
            return str.TrimLeft().TrimRight();
        }