C#中Trim()、TrimStart()、TrimEnd()的用法

时间:2022-11-20 16:52:42

string s = " from dual union all ";
          s = s.Trim().TrimEnd("union all".ToCharArray());
结果是"from d"

http://www.cnblogs.com/carekee/articles/2094731.html