Beispiel #1
0
 public static object Multiply(object a, object b) =>
 MathOperationManager.Get(MathOperationType.Multiplication, a.GetType(), b.GetType())?.Execute(a, b);
Beispiel #2
0
 public static object Subtract(object a, object b) =>
 MathOperationManager.Get(MathOperationType.Subtraction, a.GetType(), b.GetType()).Execute(a, b);
Beispiel #3
0
 public static object Power(object a, object b) =>
 MathOperationManager.Get(MathOperationType.Exponentiation, a.GetType(), b.GetType())?.Execute(a, b);
Beispiel #4
0
 public static object Add(object a, object b) =>
 MathOperationManager.Get(MathOperationType.Addition, a.GetType(), b.GetType())?.Execute(a, b);