A newer version of this page is available. Switch to the current version.

BindableBase.GetPropertyName<T>(Expression<Func<T>>) Method

Returns the name of a property identified by a lambda expression.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v18.2.dll

Declaration

public static string GetPropertyName<T>(
    Expression<Func<T>> expression
)

Parameters

Name Type Description
expression Expression<Func<T>>

A lambda expression selecting the property.

Type Parameters

Name
T

Returns

Type Description
String

The name of the property accessed by expression.

Remarks

See BindableBase to learn more.

See Also