public static Type Read(Expression expression)
        {
            var visitor = new MemberAccessTypeReader();

            visitor.Visit(expression);
            return(visitor.MemberType);
        }
Пример #2
0
 private bool IsBoolProperty(MemberExpression node)
 {
     return(MemberAccessTypeReader.Read(node) == _boolType);
 }