I'm using MEF in my Silverlight application. My code would be a lot cleaner if there were a way to "import" an instance imperatively in code (i.e. without using the Import
attribute). I've been using MEF for quite some time and I have the declarative side of MEF down.
Edits:
I'm looking to do something like this:
var myObject = container.Import<MyType>();