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

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

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v20.1.dll

Declaration

public static string GetPropertyName<T>(
    Expression<Func<T>> expression
)
Public Shared Function GetPropertyName(Of T)(
    expression As Expression(Of Func(Of T))
) As String

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