docs icon indicating copy to clipboard operation
docs copied to clipboard

Please mention that [Import] only works if it's inside an [Export] class

Open benhxy opened this issue 7 years ago • 1 comments

Hopefully with an example of a full class.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

benhxy avatar Jul 22 '19 23:07 benhxy

@benhxy Hi. I'm not seeing this as a requirement. In the other article it demonstrates this: https://docs.microsoft.com/en-us/dotnet/framework/mef/attributed-programming-model-overview-mef

Did you run into something that wasn't working? There is a link to a sample application. https://code.msdn.microsoft.com/windowsdesktop/Simple-Calculator-MEF-1152654e

Thraka avatar Nov 07 '19 20:11 Thraka