Telerik.Web.Mvc.Infrastructure.Implementation.Expressions.EnumerableSelectorAggregateFunctionExpressionBuilder.ConvertMemberExpressionToInteger C# (CSharp) Метод

ConvertMemberExpressionToInteger() приватный статический Метод

private static ConvertMemberExpressionToInteger ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
Результат System.Linq.Expressions.Expression
        private static Expression ConvertMemberExpressionToInteger(Expression expression)
        {
            var targetType = expression.Type.IsNullableType() ? typeof(int?) : typeof(int);

            return Expression.Convert(expression, targetType);
        }