C# in Depth

Cover of C# in Depth
Order now (3rd edition)

Typo in SelectMany signature

Chapter 11: Query expressions and LINQ to Objects: P310, section 11.5.3

Created: 4/10/2013
Last updated: 4/10/2013
Severity: Typo

In the signature of SelectMany, I refer to a mysterious generic IEnumerable type with two arguments for some reason... the correct signature should be:

static IEnumerable<TResult> SelectMany<TSource,TCollection,TResult>(
    this IEnumerable<TSource> source,
    Func<TSource,IEnumerable<TCollection>> collectionSelector,
    Func<TSource,TCollection,TResult> resultSelector
)