Show / Hide Table of Contents

Class NCalcService

Inheritance
System.Object
NCalcService
Namespace: CommonBotLibrary.Services
Assembly: cs.temp.dll.dll
Syntax
public class NCalcService : ICalculatorService

Methods

EvaluateAsync(String)

Returns the string result of a mathematical evaluation.

Declaration
public Task<string> EvaluateAsync(string expression)
Parameters
Type Name Description
System.String expression

The expression to evaluate.

Returns
Type Description
Task<System.String>

The evaluated expression.

Exceptions
Type Condition
System.ArgumentException

Thrown if expression is empty or null.

Back to top © 2017 - Borja Canseco