示例#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));
        }
示例#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);
        }