是否可以使用DLR加载和执行C#代码段? [英] Is it possible to load and execute C# snippets using DLR?
问题描述
我发现的有关DLR的大多数材料都与IronPython有关.您可以使用DLR解析和执行C#吗?如果有的话,是否会阻止您在拥有大约30个用户的Web服务器上尝试此操作?
The majority of material I have found regarding DLR is related to IronPython. Can you parse and execute C# using DLR? If so is there over head that would prevent you from attempting this on a web server with about 30 users?
更具体地说,当用户首次启动工作流程时,我想编写工作流程对象的配置脚本.根据一年四季变化的情况,工作流程可能会从不同的步骤开始,因此运行配置脚本似乎是处理变化的一种好方法.
More specifically I would like to script the configuration of my workflow objects when a user first initiates a workflow. Depending on conditions that change through out the year workflows may start at different steps, hence running configuration scripts seems like a good way to handle the variation.
推荐答案
Although Marc offered an alternative for me, I read this related SO question and C# and VB are not supported as of yet.
这篇关于是否可以使用DLR加载和执行C#代码段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!