I have to register an object instance into a container. I can’t use the generic ComposeExportedValue<T> since I don’t know what T is at compile time.
The method I need is something like this: container.RegisterInstance(Type someType, object instance)
Any ideas?
Here’s a version of ComposeExportedValue that is not generic: