L
Lloyd Dupont
I'm trying to create some linq expression manually.
At some stage I want to create an expression to concatenate 2 strings, I'm
trying the following code:
using System.Linq.Expressions;
Expression e1, e2;
return Expression.Call(typeof(string), "Concat", new Type[] {
typeof(string), typeof(string) }, e1, e2);
this call yield the following error:
System.InvaldOperationExpression
No method 'Concat' on type 'System.String' is compatible with the supplied
arguments.
Well, well, I'm somewhat surprised...
what else could I try?
At some stage I want to create an expression to concatenate 2 strings, I'm
trying the following code:
using System.Linq.Expressions;
Expression e1, e2;
return Expression.Call(typeof(string), "Concat", new Type[] {
typeof(string), typeof(string) }, e1, e2);
this call yield the following error:
System.InvaldOperationExpression
No method 'Concat' on type 'System.String' is compatible with the supplied
arguments.
Well, well, I'm somewhat surprised...
what else could I try?