ExpressionHelper.GetPropertyExpression<TOwner, TProperty>(String) Method

Get an expression with incapsulating a lamda that given an object of type TOwner returns the value of property propertyName.

Namespace: DevExpress.Mvvm.Utils

Assembly: DevExpress.Mvvm.v20.1.DataModel.dll

Declaration

public static Expression<Func<TOwner, TProperty>> GetPropertyExpression<TOwner, TProperty>(
    string propertyName
)
Public Shared Function GetPropertyExpression(Of TOwner, TProperty)(
    propertyName As String
) As Expression(Of Func(Of TOwner, TProperty))

Parameters

Name Type Description
propertyName String

The name of a property.

Type Parameters

Name
TOwner
TProperty

Returns

Type Description
Expression<Func<TOwner, TProperty>>

The type of a property.

See Also