开发者

How to convert MethodCallExpression to BinaryExpression

开发者 https://www.devze.com 2022-12-10 23:04 出处:网络
I\'ve created a MethodCallExpression that calls a function which returns a bool. My problem is to convert the MethodCallExpression somehow into a BinaryExpression.

I've created a MethodCallExpression that calls a function which returns a bool. My problem is to convert the MethodCallExpression somehow into a BinaryExpression.

Or otherwise stated, how can i c开发者_JS百科onstruct this expression by hand:

Expression<Func<string, bool>> exp = x => x.Contains("test");


Problem solved, see comments

0

精彩评论

暂无评论...
验证码 换一张
取 消