ApplicationUtils.CreateElementsFromRawDefinitions<T> Method |
Creates the elements from raw definitions.
Namespace:
SD.LLBLGen.Pro.ApplicationCore
Assembly:
SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.3.0.0 (5.3.0)
Syntaxpublic static List<T> CreateElementsFromRawDefinitions<T>(
List<RawElementDefinition> rawDefinitions,
ICollection<T> storage,
MultiValueDictionary<Type, TypeShortcut> typeShortcutsPerType,
Func<string, string, T> elementCreatorFunc,
Action<T, IProjectElementMapTargetElement, MultiValueDictionary<Type, TypeShortcut>> populateAndMapFunc,
Action<T> designerAfterNewElementEventFunc,
Action<List<T>> designerAfterNewElementsEventFunc
)
where T : GroupableModelElement
Public Shared Function CreateElementsFromRawDefinitions(Of T As GroupableModelElement) (
rawDefinitions As List(Of RawElementDefinition),
storage As ICollection(Of T),
typeShortcutsPerType As MultiValueDictionary(Of Type, TypeShortcut),
elementCreatorFunc As Func(Of String, String, T),
populateAndMapFunc As Action(Of T, IProjectElementMapTargetElement, MultiValueDictionary(Of Type, TypeShortcut)),
designerAfterNewElementEventFunc As Action(Of T),
designerAfterNewElementsEventFunc As Action(Of List(Of T))
) As List(Of T)
Parameters
- rawDefinitions
- Type: System.Collections.Generic.List<RawElementDefinition>
The raw definitions. - storage
- Type: System.Collections.Generic.ICollection<T>
The storage. - typeShortcutsPerType
- Type: SD.Tools.Algorithmia.GeneralDataStructures.MultiValueDictionary<Type, TypeShortcut>
Type of the type shortcuts per. - elementCreatorFunc
- Type: System.Func<String, String, T>
The element creator function. - populateAndMapFunc
- Type: System.Action<T, IProjectElementMapTargetElement, MultiValueDictionary<Type, TypeShortcut>>
The populate and map function. - designerAfterNewElementEventFunc
- Type: System.Action<T>
The designer after new element event function. - designerAfterNewElementsEventFunc
- Type: System.Action<List<T>>
The designer after new elements event function.
Type Parameters
- T
- the groupable model element to create
Return Value
Type:
List<T>newly created T instances
See Also