Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.
Stephen S. Mitchell edited this page Apr 25, 2026 · 4 revisions
  • Namespace: AlibreScript.API
  • Kind: Class

Methods

Compile

Compiles C# code

def Compile(code):
"""
Compiles C# code

Args:
code (str): Code to compile

Returns:
Compiled code object

"""

CompileAndRun

Compiles and runs C# code

Overload 1:

def CompileAndRun(code):
"""
Compiles and runs C# code

Args:
code (str): Code to compile and run

Returns:
Updated dictionary of variables

"""

Overload 2:

def CompileAndRun(code, variables):
"""
Compiles and runs C# code

Args:
code (str): Code to compile and run
variables (IronPython.Runtime.PythonDictionary): Dictionary of variables

Returns:
Updated dictionary of variables

"""

Run

Runs compiled C# code

Overload 1:

def Run(script):
"""
Runs compiled C# code

Args:
script (Microsoft.CodeAnalysis.Scripting.Script{System.Object[]}): Compiled code object to run

Returns:
Updated dictionary of variables

"""

Overload 2:

def Run(script, variables):
"""
Runs compiled C# code

Args:
script (Microsoft.CodeAnalysis.Scripting.Script{System.Object[]}): Compiled code object to run
variables (IronPython.Runtime.PythonDictionary): Dictionary of variables or None for no variables

Returns:
Updated dictionary of variables

"""

Clone this wiki locally