MSDN Library

ExpressionHelper.GetExpressionText Method (LambdaExpression)

Gets the model name from a lambda expression.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public static string GetExpressionText(
	LambdaExpression expression
)

Parameters

expression
Type: System.Linq.Expressions.LambdaExpression
The expression.

Return Value

Type: System.String
The model name.
Show:
© 2016 Microsoft