Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Silverlight 部署的 DLR 项目(我自己的自定义语言实现)中使用 Codeplex DefaultBinder。
那可能吗?DefaultBinder 是否与 Silverlight 3 和/或 4 兼容?
似乎它不起作用,因为 MS.Dynamic 和 MS.Scripting 不是“核心”CLR 程序集,因此 SL 将认为它们是安全透明的(因此无法执行安全特权操作,如各种反射体操由 DefaultBinder 完成)。
在 Silverlight 中使用 DefaultBinder 会非常有帮助,否则很难从基于 Silverlight 的 DLR 解决方案中对 CLR 代码进行非平凡的绑定。