我想将字符串数组转换为单个字符串。
string[] test = new string[2];
test[0] = "Hello ";
test[1] = "World!";
我想要一个类似“Hello World!”的东西。
最佳答案
string[] test = new string[2];
test[0] = "Hello ";
test[1] = "World!";
string.Join("", test);
关于c# - 将字符串数组转换为字符串,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/4841401/