Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been practicing MEF for some time. But I always wondered about following questions.
1. The [InheritedExport] attribute, my questions is upto what level of inheritance is supported or is it configurable too? Can the child of the derived class be instantiated by exporting the great-parent class?

2. The [ImportingConstructor], for the parameterized constructor - we can import the argument too. Is there any way else to call the parameterized constructor and pass the non default value to its argument?

3. Also, I have one question, like suppose my export expression is one such case.


Hide Copy Code
class ParentClass{...}

[Export (typeof(ParentClass))]
class A : ParentClass
{...}

Whose instance( Parent/A) will be created?

Regards,
Yashashwi

What I have tried:

I have read over internet and books but could not find answers to this specific question.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900