将字符串数组转换为字符串 [英] convert string array to string
本文介绍了将字符串数组转换为字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将字符串数组转换为单个字符串.
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);
这篇关于将字符串数组转换为字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文