以下字符串中最好的去掉
,
的方法是什么。
- one,two,three,
- three,four,five
six,seven,eight,nine,ten,
int strLength = someString.Length; if (strLength > 0) { findString = findString .Substring(0, str.Length - 1); } if (findString ==",") { someString.Remove(someString.Length - 1) }