C#我怎么让字符串从字符串数组? [英] C# how do I make string from array of string?

查看:122
本文介绍了C#我怎么让字符串从字符串数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能告诉我一个简单的方法来从字符串数组做一个字符串

Can you tell me an easy way to make a string from array of string?

我有:

String line = "how are you";
string[] split = line.Split(new Char[] { ' ' }); //{"how", "are", "you"}



我怎样才能补回来字符串 - 你好吗?它是唯一的例子,并不现实:-)谢谢

How i can make back "String - How are you"? IT IS ONLY EXAMPLE, NOT REALITY :-) Thank you.

推荐答案

使用这样的:

string.Join(" ", split);

这篇关于C#我怎么让字符串从字符串数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆