Method Compile
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
boolSpecifies if all required assemblies should be copied to the output location
syntaxCheckOnly
boolSpecifies if compilation performs syntax check only, without generating assemblies.
emitAssembly
boolSpecifies that compilation needs to write assembly bytes.
Returns
- bool
True if succeed, otherwise false.