I was thinking of starting my career as a game programmer a bit early by making a few very simple arcade games, but i really need it to accept scripting. In fact i was thinking of scripting the entire game!

My plan so far is to have the program start with a reference to a file with C# code in it. I want the program to "copy&paste" the code in the file to a method and run it. I heard from a friend that this could be done but i have no idea how.
I checked out the assembly class but only managed to compile code to a new program, which is not what i need.

So to sum up:
I need to make a program that is able to run C# code directly from an uncompiled cs file.

Is this possible?

Thanks in advance