<PackageReference Include="Castle.Windsor" Version="5.1.1" />

Castle.MicroKernel.ComponentReference<T>

public class ComponentReference<T> : IReference<T>
Reference to component obtained from the container.
namespace Castle.MicroKernel { public class ComponentReference<T> : IReference<T> { protected readonly string referencedComponentName; protected readonly Type referencedComponentType; protected DependencyModel dependencyModel; protected virtual Type ComponentType { get; } public ComponentReference(Type componentType); public ComponentReference(string referencedComponentName); public T Resolve(IKernel kernel, CreationContext context); } }