예제 #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()));
 }