Here are the examples of the csharp api string.TrimLeft() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : StringExtensions.cs
with Apache License 2.0
from wangmaosheng
with Apache License 2.0
from wangmaosheng
public static string TrimBlank(this string str)
{
if (str.IsNullOrEmpty())
{
throw new NullReferenceException("字符串不可为空");
}
return str.TrimLeft().TrimRight();
}