No, to get the last item in the list, use
int last = outputList [outputList.Count () - 1];
I have no idea how you are converting an int to an ExtremeBucket though.
"Curious" <fi********@yahoo.comwrote in message
news:2c**********************************@v30g2000 hsa.googlegroups.com...
>I have an ArrayList outputList. I only need to get the last item:
int last = outputList.LastIndexOf(null);
ExtremeBucket lastItem =
(ExtremeBucket)outputList[last];
Please confirm if this is the right way. Thanks!