PythonCompiler

Ecng.Compilation.Python

Python compiler.

Implementiert: ICompiler, ISynchronizable

Konstruktoren

PythonCompiler
public PythonCompiler()
pythonCompiler = PythonCompiler()

Initializes a new instance of the PythonCompiler class.

PythonCompiler
public PythonCompiler(ScriptEngine engine)
pythonCompiler = PythonCompiler(engine)

Initializes a new instance of the PythonCompiler class.

engine
ScriptEngine

Eigenschaften

SyncRoot
public Lock SyncRoot { get; }
value = pythonCompiler.SyncRoot

Synchronization object for thread-safe access to the engine. Use this to synchronize script execution when running scripts in parallel.