Can this method be rewritten using LINQ's query syntax?
public IEnumerable<Item> GetAllItems()
{
return Tabs.SelectMany(tab =>
{
tab.Pick();
return tab.Items;
});
}
I cannot figure out where to place tab.Pick()
method call.