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.3448.0 (4.8.3448.0)
Syntax
C#
Task<IScriptCompilerResult> Compile(
	string[] scriptText,
	CancellationToken cancellationToken
)

Parameters

scriptText  String

[Missing <param name="scriptText"/> documentation for "M:Altaxo.Main.Services.ScriptCompilation.IScriptCompilerService.Compile(System.String[],System.Threading.CancellationToken)"]

cancellationToken  CancellationToken

[Missing <param name="cancellationToken"/> documentation for "M:Altaxo.Main.Services.ScriptCompilation.IScriptCompilerService.Compile(System.String[],System.Threading.CancellationToken)"]

Return Value

TaskIScriptCompilerResult
True if successfully compiles, otherwise false.
See Also