表达评估器 [英] Expression evaluator

查看:71
本文介绍了表达评估器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数字表达式,以字符串形式提供,它使用数字和Round函数.

I have a numeric expression, provided as string, which uses numbers and Round function.

如何在运行时评估其值?

How can I evaluate its value at runtime?

谢谢

致谢

推荐答案

字符串评估器不是一件容易的事. .NET不直接支持它,因此,您可以在Google上找到很多示例或第三方应用程序.

A String evaluator is not a trivial task. It is not directly supported in .NET, so, you could Google and find quite a few examples, or third party application that do it.

如果您想构建自己的,那么许多Google链接都提供了可能有帮助的描述.

If you want to build your own, then lots of Google links offer descriptions that may help.


这篇关于表达评估器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆