I would like to convert a string array to a single string.
string[] test = new string[2];
test[0] = \"Hello \";
test[1] = \"World!\";
I wou
A slightly faster option than using the already mentioned use of the Join()
method is the Concat() method. It doesn't require an empty delimiter parameter as Join()
does. Example:
string[] test = new string[2];
test[0] = "Hello ";
test[1] = "World!";
string result = String.Concat(test);
hence it is likely faster.