KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I find myself foreach-ing over IEnumerables a lot just so that I can return each result. Is there a way to compress something like this foreach (var subSelector in subSelectors) { foreach (var node in FindSingle(context, subSelector)) yield return node; } To remove the inner foreach?
Tags (comma-separated)
Save Edits
Cancel