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

ComponentReference<T>

public class ComponentReference<T> : IReference<T>
Reference to component obtained from the container.

protected readonly string referencedComponentName

protected readonly Type referencedComponentType

protected virtual Type ComponentType { get; }

public ComponentReference(Type componentType)

Creates a new instance of ComponentReference<T> referencing default component implemented by componentType

public ComponentReference(string referencedComponentName)

Creates a new instance of ComponentReference<T> referencing component referencedComponentName

public T Resolve(IKernel kernel, CreationContext context)