New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Extension methods for Lambda Expressions.

Definition

Namespace:Kendo.Mvc.Extensions

Assembly:Kendo.Mvc.dll

Syntax:

C#
public static class ExpressionExtensions

Inheritance: objectExpressionExtensions

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Methods

Determines whether the expression is bindable (a member access or parameter expression).

C#
public static bool IsBindable(this LambdaExpression expression)
Parameters:expressionLambdaExpression

The lambda expression.

Returns:

bool

True if the expression is bindable; otherwise, false.

Gets the member name without the instance prefix from the expression.

C#
public static string MemberWithoutInstance(this LambdaExpression expression)
Parameters:expressionLambdaExpression

The lambda expression.

Returns:

string

The member name as a string.

Converts the lambda expression to a MemberExpression.

C#
public static MemberExpression ToMemberExpression(this LambdaExpression expression)
Parameters:expressionLambdaExpression

The lambda expression.

Returns:

MemberExpression

The MemberExpression, or null if conversion is not possible.