public static IEnumerable <Action <Parameter> > GetAdditionalStructureExtensionDelegateList(LayerType layerType) { if (!AdditionalStructureExtensionDelegateListMap.ContainsKey(layerType)) { AdditionalStructureExtensionDelegateListMap[layerType] = new List <Action <Parameter> >(); } return(AdditionalStructureExtensionDelegateListMap[layerType]); }
public static void RegisterAdditionalStructureExtensionDelegate(LayerType layerType, IClassStructureExtension classStructureExtension) { if (!AdditionalStructureExtensionDelegateListMap.ContainsKey(layerType)) { AdditionalStructureExtensionDelegateListMap[layerType] = new List <Action <Parameter> >(); } AdditionalStructureExtensionDelegateListMap[layerType].Add(classStructureExtension.Process); }