Click here to Skip to main content
14,694,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

In my requirement i need to pass the array data into another array when i do as follows, main array takes only the last parameter i.e last header name.

Object[][] param = new Object[3][];
for (int i = 0; i < ArrayHeader.Length; i++)
   param[0] = new Object[] { ArrayHeader[i]};

Please tell me how to pass the value of array into another array


[edit]Code block added, "Treat my content as plain text..." option disabled - OriginalGriff[/edit]
Updated 4-Mar-12 2:02am
OriginalGriff 4-Mar-12 7:01am
What is ArrayHeader?
And why are you using arrays of objects? There are much safer things to do than that.

1 solution

Why don't you just use the Array.CopyTo method?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900