Extracting Business Rule as object from Expression Tree

Mar 11, 2016 at 7:53 PM

I would like to extract conditions from the expression which can be easily represented as restriction object, what would be best way of doing that.

Eg if age > 50, then disallow, is my expression. I would like to create restriction object with property MaxAge =50

Basically have Restriction object and result object as output from Expression tree, there by giving me flexibility to play with C# object and not worry abt string