I
Iapain
Hello,
I've created an arraylist which consist arraylist ..like
ArrayList myAL = new ArrayList(); // Main Array List
ArrayList tmpAL = new ArrayList(); //Temp Array List
tmpAL.Add(2); //Add int to Temp AL
tmpAL.Add(3); //Add int to Temp AL
myAL.Add(tmpAL); //Add Temp AL to Main AL
//(and so on)
..
int[] data = (int[])myAL[0].ToArray(typeof(int); // something like this
...i have to access the element in Main arraylist whicj are itself an
arraylist and then convert them into int[].
now i have to convert myAL to int[] .. problem is in converting object
to Array, any hints?
I've created an arraylist which consist arraylist ..like
ArrayList myAL = new ArrayList(); // Main Array List
ArrayList tmpAL = new ArrayList(); //Temp Array List
tmpAL.Add(2); //Add int to Temp AL
tmpAL.Add(3); //Add int to Temp AL
myAL.Add(tmpAL); //Add Temp AL to Main AL
//(and so on)
..
int[] data = (int[])myAL[0].ToArray(typeof(int); // something like this
...i have to access the element in Main arraylist whicj are itself an
arraylist and then convert them into int[].
now i have to convert myAL to int[] .. problem is in converting object
to Array, any hints?