Table of Contents

Method Compile

Namespace
Alternet.Scripter
Assembly
Alternet.Scripter.v9.dll

Compile(bool, bool, bool)

When implemented by a class, initializes script engine and compiles the script.

bool Compile(bool copyReferences = true, bool syntaxCheckOnly = false, bool emitAssembly = true)

Parameters

copyReferences bool

Specifies if all required assemblies should be copied to the output location

syntaxCheckOnly bool

Specifies if compilation performs syntax check only, without generating assemblies.

emitAssembly bool

Specifies that compilation needs to write assembly bytes.

Returns

bool

True if succeed, otherwise false.