View Single Post
Old 02-14-2007, 03:28 PM   #2 (permalink)
Malaperth
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

If you use an arraylist, the arraylist has no types, it can only return an object. You will have to test for type, and then cast it accordingly. Or, you can use a Generic List which you can type (if you are using .Net 2.0), and make it of the base type:

Code:
List<Player> list = new List<Player> ();
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote