Skip to main content

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.v24.1.DataModel.dll

NuGet Package: DevExpress.Scaffolding.Core

Declaration

public static Expression<Func<TOwner, TProperty>> GetPropertyExpression<TOwner, TProperty>(
    string propertyName
)

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