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

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