Is MEF or MEF2 baked into the .NET Framework?

后端 未结 1 1519
天命终不由人
天命终不由人 2021-02-08 19:15

I am trying to understand MEF and I am seeing references to MEF and MEF 2.

This site lists MEF2 as being much faster than MEF (4.0).

I need to understand what

1条回答
  •  無奈伤痛
    2021-02-08 19:54

    Well to make it even more confusing Microsoft released three versions of MEF using two only unique names: MEF and MEF2

    • System.ComponentModel.Composition.* MEF in .NET 4 (typically called just MEF), no support for CompositionScopes, ExportFactories, etc
    • System.ComponentModel.Composition.* MEF2 in .NET 4.5 (sometimes called MEF2 or MEF), support for composition scopes, ExportFactories
    • System.Compostion.* from independent package Microsoft.Composition lightweight version of MEF typically called MEF2

    The benchmark site refers to lightweight MEF2 System.Compostion.* from Microsoft.Composition package.

    0 讨论(0)
提交回复
热议问题