Share via


ExpressionExtensions.GetPropertyAccessList(LambdaExpression) Method

Definition

Returns a list of PropertyInfo extracted from the given simple LambdaExpression.

public static System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> GetPropertyAccessList (this System.Linq.Expressions.LambdaExpression propertyAccessExpression);
static member GetPropertyAccessList : System.Linq.Expressions.LambdaExpression -> System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo>
<Extension()>
Public Function GetPropertyAccessList (propertyAccessExpression As LambdaExpression) As IReadOnlyList(Of PropertyInfo)

Parameters

propertyAccessExpression
LambdaExpression

The expression.

Returns

The list of referenced properties.

Remarks

Only simple expressions are supported, such as those used to reference a property.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

Applies to