Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从字符串的末尾和开头删除特定字符。
例子:
任何想法
string s = ";Maro;Mike;Tim;"; string s2 = s.Trim(';');
尝试这个:
input.Trim(";".ToCharArray())