ExpressionExtensions.GetPropertyAccess(LambdaExpression) Method

Definition

Gets the PropertyInfo represented by a simple property-access expression.

public static System.Reflection.PropertyInfo GetPropertyAccess (this System.Linq.Expressions.LambdaExpression propertyAccessExpression);
static member GetPropertyAccess : System.Linq.Expressions.LambdaExpression -> System.Reflection.PropertyInfo
<Extension()>
Public Function GetPropertyAccess (propertyAccessExpression As LambdaExpression) As PropertyInfo

Parameters

propertyAccessExpression
LambdaExpression

The expression.

Returns

The PropertyInfo.

Remarks

This method is typically used to parse property access lambdas from fluent APIs.

Applies to