1

this is the table from the official MEF document

                 Part.Any    Part.Shared     Part.NonShared

Import.Any     Shared       Shared          Non Shared

Import.Shared   Shared       Shared          No Match

Import.NonShared Non Shared   No Match      Non Shared

My question is that for the "No Match" case(Export is shared but import is non-shared or reversely), which policy that the MEF will choose? (single or multiple instance) or just follow the policy from the Export?

thank you

1 Answer 1

3

"No Match" means that the part cannot satisfy the import requirements. MEF will refuse to make such a composition.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.