BusinessObjectBase..::..GetPropertyName<(Of <(<'T>)>)> Method (Expression<(Of <(<'Func<(Of <(<'T>)>)>>)>)>)
Returns the name of the property referenced by a closure-style lambda — useful when you
already have an instance in scope and want a refactor-safe property name string instead
of a magic literal.
Namespace:
AdvantageCMS.Core.Admin.BaseClassesAssembly: AdvantageCMS.Core (in AdvantageCMS.Core.dll)
Syntax
protected static string GetPropertyName<T>( Expression<Func<T>> propertyExpression )
Type Parameters
- T
- Property value type, inferred by the compiler from propertyExpression.
Parameters
- propertyExpression
- Type: Expression<(Of <(<'Func<(Of <(<'T>)>)>>)>)>
A no-arg lambda whose body is a direct property access (for example () => instance.SomeProperty).

