Esempio n. 1
0
        public static DynamicMetaObjectBinder BinaryOperationBinder(PythonContext state, PythonOperationKind operatorName)
        {
            ExpressionType?et = GetExpressionTypeFromBinaryOperator(operatorName);

            if (et == null)
            {
                return(state.Operation(
                           operatorName
                           ));
            }

            return(state.BinaryOperation(et.Value));
        }
Esempio n. 2
0
        public static DynamicMetaObjectBinder BinaryOperationBinder(PythonContext state, PythonOperationKind operatorName) {
            ExpressionType? et = GetExpressionTypeFromBinaryOperator(operatorName);

            if (et == null) {
                return state.Operation(
                    operatorName
                );
            }

            return state.BinaryOperation(et.Value);
        }