Greetings,

Does anyone have any information about how enumerators handle changes
in the object during enumeration? Or, more specifically, I have a
scenario where I have a collection of objects that potentially being
added to by separate threads while being enumerated on another thread.
Only one thread would be adding objects at a time (and adding would be
synchronized to ensure that only one add operation is happening at a
time), but my question revolved around - would the enumerating thread
find the newly added objects, or would it be necessary to account for
this (by resetting the enumeration after an add, or some other method
of notifying the enumerating thread that the underlying collection has
changed)?

Tracy

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to