LINQ IEnumerable < > :
public static IEnumerable<TResult> Select<TSource, TResult>(
this IEnumerable<TSource> source,
Func<TSource, TResult> selector
)
selector. .Net int.Parse, :
public static int Parse(
string s
)
The .Net compiler can convert delegates to Func <...> or Action <...>. In the case of int.Parse, it can be converted to Func and therefore can be passed as an argument to the Select method.
Similarly with OrderBy. Look at his signature.
source
share