Created
September 23, 2010 19:12
-
-
Save bbehrens/594172 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
if (ExtensionProperties.HasExtensionFor(typeof(T))) | |
{ | |
var componentType = typeof(ExtensionComponent<>).MakeGenericType(ExtensionProperties.ExtensionFor(typeof(T))); | |
if (componentType != null) | |
{ | |
var component = Activator.CreateInstance(componentType) as IComponentMappingProvider; | |
(Components as IList<IComponentMappingProvider>).Add(component); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment