I'm having troubles using SelectMany in this manner:
var allTeams = from t in leagues.SelectMany( l => l.Teams )
select t;
I get the following error:
The type arguments for method
'System.Linq.Enumerable.SelectMany<TSource,TResult>
(System.Collections.Generic.IEnumerable<TSource>,
System.Func<TSource,int,System.Collections.Generic.IEnumerable<TResult>>)'
cannot be inferred from the usage. Try specifying the type arguments
explicitly.
Does anyone know a way around this? I'd be happy to specify the type
arguments explicitly as it asks, but I'm not really sure how that's
done.
Thanks :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DbLinq" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dblinq?hl=en
-~----------~----~----~----~------~----~------~--~---