I believe I understood the question but why you want to do it? Is there any good reason to parse a .cs file, compile it at runtime and use the generated IL code? For me it sounds you are try to make scripting inside of a .NET application but for that there are other ways.
The easier way is to compile the .cs file and load the created assembly and use the classes as normal. Why you can not do it?




Reply With Quote