<PackageReference Include="System.ComponentModel.Primitives" Version="4.0.1-beta-23409" />

System.ComponentModel.IContainer

public interface IContainer : IDisposable
Provides functionality for containers. Containers are objects that logically contain zero or more components.

Gets all the components in the IContainer.

void Add(IComponent component)

Adds the specified IComponent to the IContainer at the end of the list.

void Add(IComponent component, string name)

Adds the specified IComponent to the IContainer at the end of the list, and assigns a name to the component.

void Remove(IComponent component)

Removes a component from the IContainer.