Class Math
Allows in/out operations and/or data validations with XML files.
Inherited Members
Namespace: AutoCheck.Core.Connectors
Assembly: AutoCheck.Core.dll
Syntax
public class Math : Base
Methods
| Improve this Doc View SourceDispose()
Disposes the object releasing its unmanaged properties.
Declaration
public override void Dispose()
Overrides
| Improve this Doc View SourceEvaluate(String)
Evaluates a mathematical expression.
Declaration
public object Evaluate(string expression)
Parameters
Type | Name | Description |
---|---|---|
System.String | expression | A mathematical expression. |
Returns
Type | Description |
---|---|
System.Object | The evaluated expression value. |
Remarks
Uses NCalc2 internally (https://github.com/sklose/NCalc2)
Examples
Round(Pow(2, 8) + Sqrt(2) * 27.4, 2)
Extension Methods
ObjectExtensions.DeepClone<T>(T)