What is included in MEF 2?
Asked Answered
A

2

11

I see work is still going on with new features on MEF (MEF Codeplex site) and they are shipping MEF 2 beta releases, however they do not have any decent documentation on what the new features are experimenting/exploring/building?

So, what are the new features (in a little bit of detail please, a sentance or two for each would be great) that are part of MEF 2?

Animalist answered 12/9, 2011 at 10:3 Comment(1)
To the person who marked this as not a question, I would love to hear why? This seems exactly like a question "what are the features?" it is something with a specific set of answers. I have asked for more detail which may make it feel a little off but the core is still a true question.Animalist
H
5

I know one big feature is support for open generics. This allows us to import parts that look like this:

IRepository<T>
{

}

using an import that looks like this

[Import(typeof(IRepository<>))]
private IRepository<Users> userRepository;
Hannahannah answered 23/9, 2011 at 17:20 Comment(0)
A
1

From the preview documentation

  • Support for generic types.
  • Convention-based programming model that enables you to create parts based on naming conventions rather than attributes.
  • Multiple scopes.
Animalist answered 30/9, 2011 at 12:37 Comment(2)
WTF?!? Five years later and there still is no documentation on MEF2? The link provided just gives an overview of .NET 4.5 features and a link to the old MEF documentation. Where is the document that tells me how to use the new MEF2?Idyll
@DRAirey1 considering that isn't the question the poster asked, it shouldn't be there. That link is for the question, not you. Here is the documentation for the current version MEF: msdn.microsoft.com/en-us/library/…Animalist

© 2022 - 2024 — McMap. All rights reserved.