Aug 22, 2010 at 2:15 PM
Edited Aug 22, 2010 at 2:58 PM

I'm studing MEF via the provided Unit Test; I find I can gleen features from them that are not documented (yet) but am scratching my head on PartDefinitionFactory - when would I need to use this?  Is it because we have an exported baseclass that it is being used in the following test (AttributedModelCompositionTests.cs)?

        public void ExportOnAbstractBase_DoesNotReturnNull()
        {   // 499393 - Classes inheriting from an exported 
            // abstract class are exported as 'null'

            var container = ContainerFactory.Create();
            CompositionBatch batch = new CompositionBatch();

            var definition = PartDefinitionFactory.CreateAttributed(typeof(Derived));