Click or drag to resize

CodeExtensionsCompileCode Method

To compile the code.

Namespace:  StockSharp.Xaml.Code
Assembly:  StockSharp.Xaml (in StockSharp.Xaml.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public static CompilationResult CompileCode(
	this ICompiler compiler,
	string code,
	string name,
	IEnumerable<CodeReference> references
)

Parameters

compiler
Type: ICompiler
Compiler.
code
Type: SystemString
Code.
name
Type: SystemString
The build name.
references
Type: System.Collections.GenericIEnumerableCodeReference
References.

Return Value

Type: CompilationResult
The result of the compilation.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ICompiler. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also