This project has moved and is read-only. For the latest updates, please go here.

Can ExportFactory use IDictionary<string, object> for Metadata View?

Jul 26, 2010 at 7:53 PM

I'm using VS2010 with the .NET 4.0 bits plus the ExportFactoryProvider from CodePlex, and noticed that if I specify "IDctionary<string, object>" as the metadata view for an ExportFactory import it doesn't work (in the same context that Lazy would accept it).  If I specify "object" as the metadata view, it works and I get something that can be cast to an IDictionary<string, object>.  This seems like a bug to me (perhaps just in the CodePlex version?).



Jul 27, 2010 at 11:39 PM

Yep. That is pretty much an experiment. You should give it a try with the newest drop made available on this very site.