Skip to content

Instantly share code, notes, and snippets.

View F-Unction's full-sized avatar
💭
Gu gu gu~

F_Unction F-Unction

💭
Gu gu gu~
View GitHub Profile
@TheSnowfield
TheSnowfield / SandBox.cs
Last active April 22, 2025 13:18
Dynamically run C# code in the same context
public class SandBox
{
private ScriptState<object> _globalState;
public SandBox()
{
// Create initial script
var script = CSharpScript.Create(string.Empty, ScriptOptions.Default);
{
// Create an empty state