user4132485
user4132485

Reputation:

C# how do I make string from array of string?

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

I have:

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.

Upvotes: 0

Views: 178

Answers (1)

Diligent Key Presser
Diligent Key Presser

Reputation: 4253

Use this:

string.Join(" ", split);

Upvotes: 11

Related Questions