Re: generic List<>

Roberto Orsini <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
Roberto Orsini wrote:

>> Is there a way to remove items from such collection while looping through
>> the collection?
> If you can use C# 2.0, there's the List.RemoveAll method, which removes
> all the list items that satisfy the condition specified as a parameter.

Er, of course you can use C# 2.0, since you used generics in your code.
Silly me.

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.