.NET 4, how to execute dynamic vb code like windows workflow 4 does
Just curious how Windows Workflow 4 executes 开发者_如何学JAVAvb code. Can I use the same techique to execute vb.net code at run-time?
It's atually pretty specialized - before execution it compiles the VB code to an expression tree of activities in System.Activities.Expressions. I wouldn't recommend it as a way of executing general VB.net code.
You might find stuff about hosting DLR scripting languages such as IronPython interesting... I don't know if there's a similar hostable VB compiler available.
精彩评论