Skip to main content
A newer version of this page is available. .

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.2.DataModel.dll

NuGet Packages: DevExpress.Scaffolding.Core, DevExpress.WindowsDesktop.Mvvm.DataModel

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