Extracts the underlying System.Reflection.MethodInfo from System.Linq.Expressions.Expressions
Inheritance
System.Object
MethodInfoExtractor
Assembly: Solti.Utils.Primitives.dll
public static class MethodInfoExtractor : Object
Methods
Extracts the underlying System.Reflection.MethodInfo from the given expression
Declaration
public static MethodInfo Extract(Expression<Action> expression)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Action> |
expression |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
Extracts the underlying System.Reflection.MethodInfo from the given expression
Declaration
public static MethodInfo Extract(LambdaExpression expression)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.LambdaExpression |
expression |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
Extracts the underlying System.Reflection.MethodInfo from the given expression
Declaration
public static MethodInfo Extract<T>(Expression<Action<T>> expression)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Action<T>> |
expression |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
Type Parameters
Extracts the underlying System.Reflection.MethodInfo from the given expression
Declaration
public static MethodInfo Extract<T, TT>(Expression<Action<T, TT>> expression)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Action<T, TT>> |
expression |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
Type Parameters
Extracts the underlying System.Reflection.MethodInfo from the given expression
Declaration
public static MethodInfo Extract<T, TT>(Expression<Func<T, TT>> expression)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TT>> |
expression |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
Type Parameters