To Reference A Generic Method With A Lambda Expression
- by SDReyes
It is possible to reference a generic method using a Lambda Expression Object?
For example, having:
TheObject:
public abstract class LambdaExpression : Expression
TheMethod (an extension method of LINQ):
public static TSource Last<TSource>( this IEnumerable<TSource> source )
I'm trying to create an instance of TheObject, that references to TheMethod.
How do you do such thing?