Collection enumeration exception
From: Chuck Bowling (chuckbowling_at_sbcglobal-NO-SPAM.net)
Date: 03/15/05
- Next message: Nicholas Paldino [.NET/C# MVP]: "Re: Collection enumeration exception"
- Previous message: Nicholas Paldino [.NET/C# MVP]: "Re: Using C# to insert blob into Oracle"
- Next in thread: Nicholas Paldino [.NET/C# MVP]: "Re: Collection enumeration exception"
- Reply: Nicholas Paldino [.NET/C# MVP]: "Re: Collection enumeration exception"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Mar 2005 11:59:49 -0500
I have a collection that I want to edit. When I remove an object from the
collection and then try to enumerate thru it with the foreach statement it
throws an exception - "Collection was modified; enumeration operation may
not execute."
Can somebody tell me how to fix this?
- Next message: Nicholas Paldino [.NET/C# MVP]: "Re: Collection enumeration exception"
- Previous message: Nicholas Paldino [.NET/C# MVP]: "Re: Using C# to insert blob into Oracle"
- Next in thread: Nicholas Paldino [.NET/C# MVP]: "Re: Collection enumeration exception"
- Reply: Nicholas Paldino [.NET/C# MVP]: "Re: Collection enumeration exception"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading