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

ServiceOverride

public class ServiceOverride
Represents a service override.
public object DependencyKey { get; }

public Type Type { get; }

Gets the optional value type specifier.

public object Value { get; }

public static ServiceOverrideKey ForKey(string key)

Creates a ServiceOverrideKey with key.

public static ServiceOverrideKey ForKey(Type key)

Creates a ServiceOverrideKey with key.

public static ServiceOverrideKey ForKey<TKey>()

Creates a ServiceOverrideKey with key.

Implicitly converts service override to dependency. This is a API trick to keep the API clean and focused.