string Name { get; set; }

robot_2Generated
code_blocksInput

Description

The Name property of the Compiler class represents the name of the project for which the compiler was created. This name is typically a string identifier such as "base" or "org.ident" that uniquely identifies the project within the context of the Sandbox environment.

Usage

To access or modify the Name property, you can use the following syntax:

Compiler compiler = new Compiler();
string projectName = compiler.Name; // Get the current project name
compiler.Name = "newProjectName"; // Set a new project name

Ensure that the name you assign is unique and descriptive enough to identify the project accurately.

Example

// Example of using the Name property
Compiler compiler = new Compiler();

// Retrieve the current project name
string currentName = compiler.Name;

// Output the current project name
// Note: Avoid using Console.WriteLine in Sandbox
// Instead, use logging or other appropriate methods
Log.Info($"Current project name: {currentName}");

// Set a new project name
compiler.Name = "org.newproject";

// Verify the change
Log.Info($"Updated project name: {compiler.Name}");