[thelist] C#- using info from an arraylist

Robert Vreeland vreeland at studioframework.com
Fri Sep 8 21:49:11 CDT 2006

Can you post more of the code and error message, otherwise we can't really
tell what is wrong. 

Robert Vreeland
Managing Partner 

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Lightning
Sent: Friday, September 08, 2006 10:00 PM
To: thelist at lists.evolt.org
Subject: [thelist] C#- using info from an arraylist

Passenger arraylist contains START, END, DIRECTION where start and end are
integers and direction is enum.

I am looping thru arraylist, looking for instances where END = i , and if
direction also matches, I will delete it.


foreach(Passenger intEndFloor in PassengersOnCar) //<< this line does not


if (intEndFloor == intFloor && dirDirection == Direction.Up)


// if passenger wants this floor, discharge

PassengersOnCar.Remove(Passenger);  //<< this line does not compile




Can anyone help?




* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester and archives
of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! 

More information about the thelist mailing list