29 lines
824 B
C#
29 lines
824 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace VideoConcat.Common.Tools
|
|
{
|
|
internal class VideoCombine
|
|
{
|
|
static void GenerateCombinations(List<List<string>> videoLists, int index, List<string> currentCombination, List<List<string>> result)
|
|
{
|
|
if (index == videoLists.Count)
|
|
{
|
|
result.Add(new List<string>(currentCombination));
|
|
return;
|
|
}
|
|
|
|
|
|
foreach (string video in videoLists[index])
|
|
{
|
|
currentCombination.Add(video);
|
|
GenerateCombinations(videoLists, index + 1, currentCombination, result);
|
|
currentCombination.RemoveAt(currentCombination.Count - 1);
|
|
}
|
|
}
|
|
}
|
|
}
|