private static void MapEntityNodes <TSourceEntity, TDestinationEntity>( IUITree sourceTree, UITree destinationTree, Func <TSourceEntity, TDestinationEntity> entityMappingFunction) { destinationTree.Roots.AddRange(MapWithConvertEntityNodes(sourceTree.GetRoots(), entityMappingFunction)); }
private static void Map(IUITree sourceTree, UITree destinationTree, Func <List <IUITreeNode>, List <UITreeNode> > mappingFunction) { destinationTree.Roots.AddRange(mappingFunction(sourceTree.GetRoots())); }