I have a LINQ query, and I want to have a delegate that I can assign the "OrderBy" or "OrderByDescending" methods to. The signature of the "OrderBy" extension method is:
public static IOrderedEnumerable<TSource> OrderBy<TSource, TKey>(
this IEnumerable<TSource> source,
Func<TSource, TKey> keySelector)
Can anyone show me what the delegate would look like?