Esempio n. 1
0
        public IEnumerable <LastLevelNodeExpressionTreeModel> DisassembleUnaryExpression(UnaryExpression unaryBody, List <ExpressionType> concatedList)
        {
            List <LastLevelNodeExpressionTreeModel> list = _visitHelper.VisitLefts(unaryBody.Operand);

            foreach (LastLevelNodeExpressionTreeModel expressionTreeModel in list)
            {
                var expressionWithMethodModel = new ExpressionWithMethodModel()
                {
                    ValueOfExpressionType = unaryBody.NodeType,
                    CurrentMethodInfo     = unaryBody.Method
                };
                expressionTreeModel.ExpressionWithMethodModel = expressionWithMethodModel;
            }
            return(list);
        }
Esempio n. 2
0
        public IEnumerable <LastLevelNodeExpressionTreeModel> DisassembleCallExpression(MethodCallExpression callBody, List <ExpressionType> concatedList)
        {
            var list = _visitHelper.VisitLefts(callBody.Object);

            foreach (LastLevelNodeExpressionTreeModel expressionTreeModel in list)
            {
                var expressionWithMethodModel = new ExpressionWithMethodModel()
                {
                    ValueOfExpressionType = ExpressionType.Call,
                    CurrentMethodInfo     = callBody.Method
                };
                expressionTreeModel.ExpressionWithMethodModel = expressionWithMethodModel;
            }
            return(list);
        }