我希望你能够将“this is a test”转换成类似的简单操作。
new string[] {"t","h","i","s"," ","i","s"," ","a"," ","t","e","s","t"}
我真的需要做像这样的事情吗?
test = "this is a test".Select(x => x.ToString()).ToArray();
编辑:为了澄清,我不想要一个字符数组,理想情况下我希望有一个字符串数组。除了我认为有一个更简单的方法之外,我并没有看到以上代码有什么问题。
var test = "this is a test".Select(x => x.ToString()).ToArray();
有什么问题? - L.B