Extract the MethodInfo from a given expression.

Namespace: NHibernate.Linq
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static MethodInfo GetMethodDefinition<TSource>(
	Expression<Action<TSource>> method
)
Visual Basic
Public Shared Function GetMethodDefinition(Of TSource) ( _
	method As Expression(Of Action(Of TSource)) _
) As MethodInfo
Visual C++
public:
generic<typename TSource>
static MethodInfo^ GetMethodDefinition(
	Expression<Action<TSource>^>^ method
)

Parameters

method
Type: System.Linq.Expressions..::..Expression<(Of <(<'Action<(Of <(<'TSource>)>)>>)>)>
The method.

Type Parameters

TSource
The declaring-type of the method.

Return Value

The MethodInfo of the no-generic method or the generic-definition for a generic-method.

See Also