将字符串数组转换为字符串
问题描述:
我想将字符串数组转换为单个字符串.
I would like to convert a string array to a single string.
string[] test = new string[2];
test[0] = "Hello ";
test[1] = "World!";
我想要诸如Hello World!"之类的东西
I would like to have something like "Hello World!"
答
string[] test = new string[2];
test[0] = "Hello ";
test[1] = "World!";
string.Join("", test);