Registering instances with MEF

Posted by yang on Stack Overflow See other posts from Stack Overflow or by yang
Published on 2010-05-16T08:40:58Z Indexed on 2010/05/16 8:50 UTC
Read the original article Hit count: 836

Filed under:

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?

Thanks.

© Stack Overflow or respective owner

Related posts about MEF