Skip to content

CompilationResult

class cAlgo.API Since 5.1

DesktopCLICloud

The result of an algo compilation.

Definition

public class CompilationResult

Namespace: cAlgo.API · Group: Compilation

Examples

var result = Compiler.Compile(@"Sample cBot\Sample cBot.csproj");
if (!result.Succeeded)
{
    foreach (var error in result.Errors)
        Print("Compilation error: {0}", error);
}
result = api.Compiler.Compile(r"Sample cBot\Sample cBot.csproj")
if not result.Succeeded:
    for error in result.Errors:
        api.Print(f"Compilation error: {error}")

Properties

Name Description
ErrorsDesktopCLICloudIReadonlyList<string> Gets compilation errors if Succeeded was False, otherwise null.
SucceededDesktopCLICloudbool Gets the result of compilation, True if succeeded otherwise False.

See also