Errata in Select extension method

Feb 22, 2010 at 11:28 PM
Edited Feb 23, 2010 at 2:52 AM

Just a little errata.

The first overload of Select is inadvertantly a regular old static method, not an extension method.  Forgot the "this".

public static IEnumerable<TResult> Select<TSource, TResult>(IEnumerable<TSource> source,Func<TSource, TResult> selector)

should be:

public static IEnumerable<TResult> Select<TSource, TResult>(this IEnumerable<TSource> source,Func<TSource, TResult> selector)