void RemoveAssembly( string name )

robot_2Generated
code_blocksInput

Description

The RemoveAssembly method is used to remove an assembly from the compile group by its name. This is useful when you need to dynamically manage the assemblies that are part of a compile group, such as when cleaning up or reconfiguring the compile environment.

Usage

To use the RemoveAssembly method, you need to have an instance of the CompileGroup class. Call the method with the name of the assembly you wish to remove as a string parameter.

Example

// Create an instance of CompileGroup
CompileGroup compileGroup = new CompileGroup();

// Add an assembly to the compile group
compileGroup.AddAssembly("MyAssembly", new Span<byte>(), false);

// Remove the assembly from the compile group
compileGroup.RemoveAssembly("MyAssembly");

// Verify that the assembly has been removed
bool isRemoved = !compileGroup.Compilers.Any(c => c.Name == "MyAssembly");
// isRemoved should be true if the assembly was successfully removed.