Given a Lambda expression:
Define(Expression<Func<T, int>> property)
and is used as:
Define(x => x.Collection.Count)
What is the best method to get the count value? Is there an easy way with an expression tree, or use reflection to parse the tree to get PropertyInfo and GetValue ()?
source share