How does s&box compile c# code dynamically, and runs it?

Just wondering, how does s&box dynamically compile c# code and run it? I looked up many ways to do so up from running assemblies, using the roslyn compiler, etc… but a lot of times i get broken compiler code, platform errors, etc…

Thanks!

2 Likes
1 Like