Exemple #1
0
 public static void RegisterBinary(Type ret, Type left, char op, Type right, BinaryOperateFunc operation)
 {
     binary_operators.Add(new BinaryOperatorDef(ret, left, op, right), operation);
 }
Exemple #2
0
 public static void RegisterBinaryCommutative(Type ret, Type left, Operator op, Type right, BinaryOperateFunc operation)
 {
     binary_operators.Add(new BinaryOperatorDef(left, op, right), new OperationData <BinaryOperateFunc>(ret, operation, true));
 }