M
mike
Hello,
Are there any ways to stop List<T>.ForEach - method if e.g.
some condition is coming true?
Sample like
lst.ForEach(delegate(Item item)
{
...
if(item.Value == "Break")
<how to stop?>;
...
});
Cheers,
Michael
Are there any ways to stop List<T>.ForEach - method if e.g.
some condition is coming true?
Sample like
lst.ForEach(delegate(Item item)
{
...
if(item.Value == "Break")
<how to stop?>;
...
});
Cheers,
Michael