Exemplo n.º 1
0
        protected override Expression VisitUnary(UnaryExpression u)
        {
            if (u.IsOfType(ExpressionType.Convert))
            {
                var operand = Visit(u.Operand);
                return(TryRemoveEnumToIntCast(u, operand) ?? u.Update(operand));
            }

            return(base.VisitUnary(u));
        }