Table of Contents

Class ExpressionHelper

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Provides a helper class to get the model name from an expression.

public static class ExpressionHelper
Inheritance
ExpressionHelper
Inherited Members

Methods

GetExpressionText(LambdaExpression)

Gets the model name from a lambda expression.

public static string GetExpressionText(LambdaExpression expression)

Parameters

expression LambdaExpression

The expression.

Returns

string

The model name.

GetExpressionText(string)

Gets the model name from a string expression.

public static string GetExpressionText(string expression)

Parameters

expression string

The expression.

Returns

string

The model name.