.net - MEF [ImportMany] without Lazy<T,TM> -
is possible access export metadata in mef without storing ilist<lazy<t,tm>> parts, ilist<t> parts
no, cannot metadata after fact. must import along parts themselves.
think of import contract specifying needs of component. if needs access metadata of dependency, shouldn't hide that.
see nicholas blumhardt's post the relationship zoo, kind of relationship between components described a needs know x b before using it. point metadata aspect of relationship between components, not should handled separately somehow.
Comments
Post a Comment