heh..yeah that would be easier <g> Thanks Jeremy (hmm..must catch up with you OTL ... it's been a long time <g>)
Merak > -----Original Message----- > From: Jeremy Hopkin [mailto:[EMAIL PROTECTED]] > Sent: 10 June 2002 16:48 > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] enumerating a collection while adding > more items to it > > > Or start at the end and decrement the index when you > are just deleting > > On Mon, 10 Jun 2002 16:38:19 +0100, Chris Anderson > <[EMAIL PROTECTED]> wrote: > > >It depends > > > >If you remove the item that's current, you don't increment > the index, > >because the index now points to the next item, if you insert an item > >after the current one, you add 2 to the index (assuming you want to > >skip the new item), otherwise you increment the index by one > > > >Merak You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.