If you create a metadata view type, the constructor of the type must accept an IDictionary<string, object>. This means you can't use an IReadOnlyDictionary<string, object> which is a separate (and more appropriate) interface. MEF should allow use of the other interface and correctly invoke the constructor.
↧