ArrayList
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, Im assuming an ArrayList is similar to Java's Vector class, however im having trouble accessing individual elements in the ArrayList and I cant see any methods there to get elements. someone ?
You access it just like an array :)
ArrayList al = new ArrayList();
// fill the array list
MyDataType elementZero = (MyDataType) al[0];
MyDataType elementOne = (MyDataType) al[1];James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002