Пример #1
0
 private static void MapEntityNodes <TSourceEntity, TDestinationEntity>(
     IUITree sourceTree, UITree destinationTree, Func <TSourceEntity, TDestinationEntity> entityMappingFunction)
 {
     destinationTree.Roots.AddRange(MapWithConvertEntityNodes(sourceTree.GetRoots(), entityMappingFunction));
 }
Пример #2
0
 private static void Map(IUITree sourceTree, UITree destinationTree, Func <List <IUITreeNode>, List <UITreeNode> > mappingFunction)
 {
     destinationTree.Roots.AddRange(mappingFunction(sourceTree.GetRoots()));
 }