AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

BusinessObject<(Of <(<'T>)>)>..::..GetPropertyName<(Of <(<'P, L>)>)> Method

Returns the string property name of the property referenced.
C#
AddSearchableProperty(GetPropertyName(() => this.someProperty), this.someProperty);
This helps in ensuring that index property names are spelled correctly, and helps catch errors if property name is changed

Namespace:  AdvantageCMS.Core.Admin.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static string GetPropertyName<P, L>(
	Expression<Func<P, L>> expression
)

Type Parameters

P
L

Parameters

expression
Type: Expression<(Of <(<'Func<(Of <(<'P, L>)>)>>)>)>
Property

Return Value

String name of property