Click or drag to resize

IScriptCompilerServiceCompile Method

Does the compilation of the script into an assembly. The assembly is stored together with the read-only source code and returned as result. As list of compiled source codes is maintained by this class. If you provide a text that was already compiled before, the already compiled assembly is returned instead of a freshly compiled assembly.

Namespace: Altaxo.Main.Services.ScriptCompilation
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
Task<IScriptCompilerResult> Compile(
	string[] scriptText,
	CancellationToken cancellationToken
)

Parameters

scriptText  String
The script source texts to compile.
cancellationToken  CancellationToken
The cancellation token that can be used to cancel compilation.

Return Value

TaskIScriptCompilerResult
The compiler result for the supplied script text.
See Also