Does FLEE work for classes ?

Dec 19, 2010 at 1:17 AM

Hello,

Suppose I have a class

public class Animal

{

     long Legs{

          get; set;

    }

}

 

and I want to evaluate the expression "animal.Legs == 2"  

Is this possible with FLEE.

Something like:

Animal animal = new Animal();

animal.Legs = 4;

bool isBiped = Expression.Eval("animal.Legs == 2") ;

Thanks!

Aaron