Click or drag to resize

ModelExtensionsGetPropertyName Method (Expression)

Gets the property name from an Expression.

Read our blog on this topic: Effective Extensions, Part 3 – Extending Models in C#

Namespace:  Xcalibur.Extensions
Assembly:  Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
public static string GetPropertyName(
	this Expression expression
)

Parameters

expression
Type: System.Linq.ExpressionsExpression
The expression to evaluate.

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Expression. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also