Microsoft.CSharp.CSharpCodeProvider can be used to compile C# classes.
var code = @"
public class Abc {
public string Get() { return ""abc""; }
}
";
var options = new CompilerParameters();
options.GenerateExecutable = false;
options.GenerateInMe...