Info
Version: | 1.1.0 |
Author(s): | HiveKion |
Last Update: | Friday, October 9, 2020 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/HiveKion.Expression |
Install
Install-Package HiveKion.Expression
dotnet add package HiveKion.Expression
paket add HiveKion.Expression
HiveKion.Expression Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.VisualBasic(>= 10.3.0)
使用方法:
var expression = "(1+6)*6/2";
var ret = 0d;
var isSuccess = CalculateInstance.GetInstance().Evaluate(expression, ref ret);
Console.WriteLine($"计算状态是{isSuccess},计算结果是:{ret}");.