Possible Duplicate:
Merging two arrays in .NET
How do I concatenate two arrays in C#?
How could I merge two string[]
variables?
Example:
string[] x = new string[] { "apple", "soup", "wizard" };
string[] y = new string[] { Q.displayName, Q.ID.toString(), "no more cheese" };
I want to add these two so the content of x
is:{"apple", "soup", "wizard",Q.displayName, Q.ID.toString(), "no more cheese"};
in that order. Is this possible? If the result has to go into a new string array that's fine; I just would like to know how to make it happen.