public CreateTemplatedClone ( |
||
templateTypes | ||
Résultat |
public PluginFamily CreateTemplatedFamily(Type templatedType, ProfileManager profileManager) { Type basicType = templatedType.GetGenericTypeDefinition(); if (_families.Has(basicType)) { PluginFamily basicFamily = _families[basicType]; Type[] templatedParameterTypes = templatedType.GetGenericArguments(); PluginFamily templatedFamily = basicFamily.CreateTemplatedClone(templatedParameterTypes); PluginFamily family = templatedFamily; profileManager.CopyDefaults(basicType, templatedType, family); return(family); } else { return(null); } }