Is there a built in function in .NET 2.0 that will take two arrays and merge them into one array?
The arrays are both of the same type. I’m getting these arrays from a widely used function within my code base and can’t modify the function to return the data in a different format.
I’m looking to avoid writing my own function to accomplish this if possible.
If you can manipulate one of the arrays, you can resize it before performing the copy:
Otherwise, you can make a new array
More on available Array methods on MSDN.