我如何找到 indexof()
来自:
string value = " 50 ";
有空格...但我不想使用 SubString()
或 Replace()
删除它们...
我必须删除 leftindex
空格,直到我得到 "5"
并删除 rightindex
之后的空格 "0"
.
最佳答案
字符串.修剪
关于c# - 在 C# 中查找 IndexOf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/701105/