Is there a way to do the opposite of String.Split
in .Net? That is, to combine all the elements of an array with a given separator.
Taking ["a", "b", "c"]
and giving "a b c"
(with a separator of " "
).
UPDATE: I found the answer myself. It is the String.Join
method.
No comments:
Post a Comment