0

In Unity is it possible to Register a type if I only know the string name of the concrete type?

For example rather than doing something like this:

IUnityContainer container = ...
container.RegisterType<IMyInterface<MyType>, MyConcreteType>(...));

I want to do something like this:

IUnityContainer container = ...
container.RegisterType<IMyInterface<MyType>, "className">(...));

0 Answers0