How may parameters be sent into an Expression tree?

c# expression-trees lambda parameters parsing

Question

I'm creating a parser for phrases like these:

a1 + a2 + a3 > 0 and b <> "" or c = "source"

While parsing the expression, I want to utilize the expression tree and gather the arguments (a1, a2, etc.). How may parameters be sent into an expression tree?

I'm using.net Framework 4.0.

1
1
4/20/2011 9:13:42 AM

Accepted Answer

Include it in a lambda that accepts the relevant arguments. View the second illustration at: http://msdn.microsoft.com/en-us/library/bb397951.aspx

0
4/20/2011 9:38:17 AM


Related Questions





Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow