Cosmin Onea
Cosmin Onea

Reputation: 2738

.NET 4, how to execute dynamic vb code like windows workflow 4 does

Just curious how Windows Workflow 4 executes vb code. Can I use the same techique to execute vb.net code at run-time?

Upvotes: 0

Views: 686

Answers (1)

Tim Lovell-Smith
Tim Lovell-Smith

Reputation: 16155

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.

Upvotes: 1

Related Questions