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