Ejemplo n.º 1
0
        public LambdaExpression GetLambda(ParameterExpression parameter)
        {
            var targetType = ConstValue?.GetType() ?? typeof(string);
            var constExp   = Expression.Constant(this.ConstValue, targetType);

            return(Expression.Lambda(typeof(Func <,>).MakeGenericType(SourceType, targetType), constExp, parameter));
        }