It's worth noting that Mono's C# compiler already has an API (and a REPL shell built on top of it) for several years.
You can read more about it here: http://www.mono-project.com/CsharpRepl
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
It's worth noting that Mono's C# compiler already has an API (and a REPL shell built on top of it) for several years.
You can read more about it here: http://www.mono-project.com/CsharpRepl