It's not difficult for me to save code to temp folder, use csc.exe to compile it and load the assembly dinamically, but how can I execute the code with limited permissions?
For example, how can I prohibit the code from...
- creating new threads.
- doing any I/O operations.
- granting higher permissions.
- gathering information of the system.
- executing dead cycle (well, it's not about security).
- use too much memory.
- any other dangrous things...
Any information(blog/article/paper/manual...) is welcomed.