0
嗨,我使用MEF,這是我的情況:定製優先的零件在MEF
[ImportMany]
public IEnumerable<Lazy<IMyInterface>> correspondingParts { get; set; }
現在correspondingParts,我得到所有的出口型IMyInterface的的DLL的。但是,問題就像當我使用
foreach(var parts in correspondingParts)
{
// do something!
}
現在相應的部分包含DLL的按名稱按字母順序排序。我需要能夠優先考慮DLL的。