Limiting What Code Can Do/Access?
I'm compiling code as an assembly object in memory, then running a void function called ScriptMain() in that code on a new thread. Without compiling the code to a file and loading it into an AppDomain, how could I apply security and limits to the code? Or do I apply some sort of limiting security to the thread on which it executes? I want my users to be able to write scripts for only my application, and not access the entire .NET framework.
Someone please give me some insight on this, I'll post the code if necessary, just too lazy to go get it off my laptop via flash drive right now. 
Someone please give me some insight on this, I'll post the code if necessary, just too lazy to go get it off my laptop via flash drive right now. 
Thanks man.