update
This commit is contained in:
parent
cb7608ed7b
commit
7c18c01322
28
Common/Tools/VideoCombine.cs
Normal file
28
Common/Tools/VideoCombine.cs
Normal file
@ -0,0 +1,28 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user