public static void RegisterUnary(Type ret, Type operandType, char op, UnaryOperateFunc operation) { unary_operators.Add(new UnaryOperatorDef(ret, op, operandType), operation); }
public static void RegisterUnary(Type ret, Operator op, Type operandType, UnaryOperateFunc operation) { unary_operators.Add(new UnaryOperatorDef(op, operandType), new OperationData <UnaryOperateFunc>(ret, operation, false)); }