Gets the field or property to be accessed.

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

Syntax

C#
public static MemberInfo GetProperty<TSource, TResult>(
	Expression<Func<TSource, TResult>> property
)
Visual Basic
Public Shared Function GetProperty(Of TSource, TResult) ( _
	property As Expression(Of Func(Of TSource, TResult)) _
) As MemberInfo
Visual C++
public:
generic<typename TSource, typename TResult>
static MemberInfo^ GetProperty(
	Expression<Func<TSource, TResult>^>^ property
)

Parameters

property
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'TSource, TResult>)>)>>)>)>
The expression representing the property getter.

Type Parameters

TSource
The declaring-type of the property.
TResult
The type of the property.

Return Value

The MemberInfo of the property.

See Also