I have a class idnamepair which contains 2 members, int id and String^ name;
I have a ArrayList created with this class's objects.
How can I convert it to array?
2007-03-04
22:09:42
·
3 answers
·
asked by
hope_of_d_world
3
in
Computers & Internet
➔ Programming & Design
converting an arraylist of string is very simple. I am having objects.
Anyways i got it myself:
array ^ arrRet = (array ^)arr->ToArray(arr[0]->GetType());
where arr is of type ArrayList.
2007-03-04
22:38:13 ·
update #1