// Overloaded versions of the Enumerable.Where() method.
// Note the second parameter is of type System.Func<>.
public static IEnumerable Where(this IEnumerable source,
System.Func predicate)
public static IEnumerable Where(this IEnumerable source,
System.Func predicate)
This delegate (as the name implies) represents a pattern for a given function with a set of argu-
ments and a return value. If you were to examine this type using the Visual Studio 2008 object
browser, you’ll notice that the Func<> delegate can take between zero and four input arguments
(here typed T0, T1, T2, and T3 and named arg0, arg1, arg2, and arg3), and a return type denoted by
TResult:
Do'stlaringiz bilan baham: |