Hi,
Although this does not add much functionality you can't do with a for loop
I would probably use this feature if it existed.
You can suggest features to microsoft using their product feedback center
Search the feature(or bug) on this page and if the feature/bug is not
found or does not apply to your problem you can deliver a new report
http://connect.microsoft.com/feedbac...spx?SiteID=210
Note though that the features of .net 3 has more or less been decided by
now.
On Thu, 17 Aug 2006 04:57:35 +0200, Anibal David Acosta F. <aa@pla.net.py
wrote:
Currently is not possible to remove and item while iterating between
them,
so ...
I suggest something like this..
foreach (MyType CurrentItem in MyCollection)
{
MyCollection.Mark(CurrentItem);
}
MyCollection.RemoveMarkedItems();
--
Happy Coding!
Morten Wennevik [C# MVP]