Created
July 15, 2010 07:13
-
-
Save GraemeF/476612 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private TPart ComposePartWith<TPart, TImport>(TImport import) | |
{ | |
var childContainer = new CompositionContainer(Container); | |
childContainer.ComposeExportedValue(import); | |
return childContainer.GetExportedValue<TPart>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Container
is the root container, so I'm trying to create a child, popimport
into it and then compose a newTPart
which importsimport
.