Created
July 15, 2010 07:13
-
-
Save GraemeF/476612 to your computer and use it in GitHub Desktop.
This file contains hidden or 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>(); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Containeris the root container, so I'm trying to create a child, popimportinto it and then compose a newTPartwhich importsimport.