Possible Duplicate:
Compile and run dynamic code, without generating EXE?
How to Compile the .cs file into .dll in C#.Net programtically?
In .NET 4.0 i would like to do the following.
- Write cs files at runtime.
- Compile cs files at runtime.
- Create Instances of these files at runtime.
Is it possible and how?
Yes. It is possible. To create and compile classes, you can use CodeDOM. Then you could create instances use them in your code.
Why are you trying to do this? If you can provide more information, someone can provide better alternative.