The following is a great example of how to create an Expression tree when the operator and value is passed into the method as SEPERATE parameters.
Get list on basis of dropdownlist data in asp.net mvc3
In my example i have several dropdownboxes where the operator and value are combined e.g. ">= 1", "< 3" etc. I could potentially split this into operator and value, passing both to the example above but was wondering if there is a simpler way to write the expression where i can just use the operator and value as one parameter, replacing MakeBinary method with an alternative.
I am relatively new to Expression trees so some guidance would be helpful. Thanks.