Share your repls and programming experiences

← Back to all posts
C# Code Sandbox Using Mono.Cecil
h
CSharpIsGud (549)

This is a C# code sandbox made with cecil, it essentially scans through every method the code calls and replaces any thing it is not allowed to do with an exception.

Unfortunately, it has to be compiled via the terminal since it needs to be compiled with the cecil dll.
If you press the run button instead, the program will error!

You can also provide classes to the sandboxed code via a shared library both sides have access to.