I am developing the parser for expressions like this:
a1 + a2 + a3 > 0 and b <> "" or 开发者_运维百科c = "source"
I want to use expression tree and collect parameters (a1, a2..) while parsing expression. How to pass parameters into an Expression tree?
Edit: I am using .net 4.0
Wrap it in a lambda that takes the parameters you're interested in. Look at the second example on: http://msdn.microsoft.com/en-us/library/bb397951.aspx
精彩评论