Errata in Select extension method

Feb 23, 2010 at 12:28 AM
Edited Feb 23, 2010 at 3: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)