Re: [DOTNET] Threading and Enumeration

2002-04-16 Thread Duncan Godwin
Or you could use that, which I didn't even realise was there...sorry. Duncan - Original Message - From: "Jim Arnold" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 16, 2002 2:11 PM Subject: Re: [DOTNET] Threading and Enumeration > &g

Re: [DOTNET] Threading and Enumeration

2002-04-16 Thread Jim Arnold
> Why would you actually want to make the copy by some means other than > enumeration? Because ICollection.CopyTo() (where available) is usually 10x faster? He says, jumping in without reading the whole thread. Jim > > -- > Ian Griffiths > DevelopMentor > > - Original Message - > From:

Re: [DOTNET] Threading and Enumeration

2002-04-16 Thread Ian Griffiths
I thought the point was that you *do* make the copy by enumerating. The idea is that you acquire the lock, build a copy as quickly as you can using the enumerator, release the lock, and then work through the copy at your leisure. I thought that was what the original post was suggesting. (Althoug

Re: [DOTNET] Threading and Enumeration

2002-04-16 Thread Duncan Godwin
D]> Sent: Tuesday, April 16, 2002 12:32 PM Subject: Re: [DOTNET] Threading and Enumeration > The fun bit is making the copy *without enumerating* ;) > > G. > -- > Graeme Foster ([EMAIL PROTECTED]) > Principal Software Engineer > Aston Broadcast Systems Ltd. (http://www.as

Re: [DOTNET] Threading and Enumeration

2002-04-16 Thread Graeme Foster
The fun bit is making the copy *without enumerating* ;) G. -- Graeme Foster ([EMAIL PROTECTED]) Principal Software Engineer Aston Broadcast Systems Ltd. (http://www.aston.tv) Disclaimer: I really don't have a clue what I'm on about. -Original Message- From: dotnet discussion [mailto:[EMA

Re: [DOTNET] Threading and Enumeration

2002-04-15 Thread Duncan Godwin
IL PROTECTED]> Sent: Monday, April 15, 2002 5:06 PM Subject: Re: [DOTNET] Threading and Enumeration > Thanks... (Somehow I always seem to miss the documents I need to see > when I'm searching...) > > > -Original Message- > > From: dotnet discussion > > [m

Re: [DOTNET] Threading and Enumeration

2002-04-15 Thread Tracy Martin
Thanks... (Somehow I always seem to miss the documents I need to see when I'm searching...) > -Original Message- > From: dotnet discussion > [mailto:[EMAIL PROTECTED]]On Behalf Of > Ethan Smith > Sent: Monday, April 15, 2002 11:40 > To: [EMAIL PROTECTED] > Subject: Re: Threading and Enume

Re: [DOTNET] Threading and Enumeration

2002-04-15 Thread Ethan Smith
>From the docs: "An enumerator remains valid as long as the collection remains unchanged. If changes are made to the collection, such as adding, modifying or deleting elements, the enumerator is irrecoverably invalidated and the next call to MoveNext or Reset throws an InvalidOperationException.