Esempio n. 1
0
        public static DynamicMetaObjectBinder UnaryOperationBinder(TotemContext state, TotemOperationKind operatorName)
        {
            ExpressionType? et = GetExpressionTypeFromUnaryOperator(operatorName);

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

            return state.UnaryOperation(et.Value);
        }
Esempio n. 2
0
 public static DynamicMetaObjectBinder UnaryOperationBinder(TotemContext state, ExpressionType operatorName)
 {
     return state.UnaryOperation(operatorName);
 }