To Reference A Generic Method With A Lambda Expression
Posted
by SDReyes
on Stack Overflow
See other posts from Stack Overflow
or by SDReyes
Published on 2010-05-17T15:15:00Z
Indexed on
2010/05/17
15:30 UTC
Read the original article
Hit count: 326
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?
© Stack Overflow or respective owner