Silverlight 中的 System.CodeDom.Compiler.CompilerParameters 在哪里?

发布于 2024-09-01 09:40:30 字数 183 浏览 2 评论 0原文

我想在 Silverlight 中创建数学表达式计算器。 为了轻松做到这一点,我需要使用 System.Reflection、System.Reflection.Emit、System.CodeDom.Compiler 和其他相关程序集进行动态编译。

但是,我在 Silverlight 中找不到此类。

请给我一些建议。

I want to create Mathematics Expression Evaluator in Silverlight.
To do that easily, I need compilation on the fly using System.Reflection, System.Reflection.Emit, System.CodeDom.Compiler, and other related assemblies.

However, I cannot find this class available in Silverlight.

Give me some suggestion please.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鲜肉鲜肉永远不皱 2024-09-08 09:40:30

Silverlight 不执行 CodeDom,System.ReflectionSystem.Reflection.Emit 存在于 Silverlight 的 mscorlib 中。

因此,如果您打算使用表达式求值器,则需要为表达式发出 IL。

或者,如果您可以使用 Javascript,您可以让主机浏览器执行评估。

Silverlight doesn't do the CodeDom, System.Reflection and System.Reflection.Emit are present in the mscorlib for Silverlight.

Hence if you are going to do a expression evaluator you'll need to emit IL for the expressions.

Alternatively if you can use Javascript you could get the host browser to perform the evaluation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文