Description
The Name
property of the CompileGroup
class represents the name of the compile group. This property is primarily used for debugging and display purposes, allowing developers to easily identify and differentiate between different compile groups within the Sandbox environment.
Usage
To access or modify the Name
property, you can use the following syntax:
CompileGroup compileGroup = new CompileGroup();
string currentName = compileGroup.Name; // Get the current name
compileGroup.Name = "NewCompileGroupName"; // Set a new name
Ensure that the name you assign is meaningful and unique to avoid confusion during debugging and display operations.
Example
// Example of setting and getting the Name property of a CompileGroup
CompileGroup compileGroup = new CompileGroup();
// Set the name of the compile group
compileGroup.Name = "MainCompileGroup";
// Retrieve the name of the compile group
string groupName = compileGroup.Name;
// Output the name
// Note: Avoid using Console.WriteLine in Sandbox environment
// Use appropriate logging or UI display methods instead
// Log.Info($"Compile Group Name: {groupName}");