Click here to Skip to main content
14,034,429 members
Rate this:
 
Please Sign up or sign in to vote.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190423.1 | Last Updated 7 Mar 2016
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100