KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have some list and I do list.ForEach( l => { ... something ...}) . Now, on certain condition I need to stop iterating over the list, but break doesn't work - I get " Control cannot leave the body of an anonymous method or lambda expression " compilation error. Any idea how to overcome that restriction?
Tags (comma-separated)
Save Edits
Cancel