Possible Duplicate:
In .NET 4.0, how do I ‘sandbox’ an in-memory assembly and execute a method?
The scenario is as follows. I want to have a view where the user puts in a few things that can be composed to a c# class:
public class my3rdpartyclass
{
public void withOneMethod()
{
}
}
I would like to compile this on the fly, this is not the hard part i guess. But how do i secure my system, such the the 3rd party code inside withOneMethod can not run any stuff that can damage my system or access properties from web.config or system information.
Is something like this possible?