Exemplo n.º 1
0
 /// <inheritdoc cref="ICalculator.Evaluate(OperationInfo)" />
 public static double Evaluate(OperationInfo operation)
 {
     return(_calculator.Evaluate(operation));
 }
Exemplo n.º 2
0
        /// <inheritdoc />
        public OperationInfo CreateOperation(string expression)
        {
            expression.EnsureNotNull(nameof(expression));

            return(OperationInfo.Create(expression, _mathContext));
        }