As you can see from the code below am building up a collection of objects from within a list within a list. Wondering if there is a better way of writing this nasty method.
Cheers in Advance
private List<ListINeed> GetListINeed(Guid clientId)
{
var listINeed = new List<objectType>();
someobject.All(p =>
{
p.subcollection.All(q =>
{
listINeed.Add(q.subObject);
return true;
});
return true;
});
return listINeed;
}
use SelectMany