字符串数组转换为字符串 [英] convert string array to string
本文介绍了字符串数组转换为字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想一个字符串数组转换为一个字符串。
的String [] =测试新的字符串[2];
试验[0] =你好;
测试[1] =世界!;
我想有类似的Hello World!
解决方案
的String [] =测试新的字符串[2];试验[0] =你好;
测试[1] =世界!;的string.join(,试验);
I would like to convert a string array to a single string.
string[] test = new string[2];
test[0] = "Hello ";
test[1] = "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屋!
查看全文