我有这段代码:
stringCutted = myString.Split("/"). // ???
我想直接、快速地将string[]
数组拆分后的最后一个元素存储在stringCutted
中,而不需要将拆分后的数组存储在变量中,然后使用array[array.length]
来访问该元素。
在C#中是否有可能实现这一点?