Initial commit

This commit is contained in:
2022-03-12 17:12:52 +01:00
commit 09d1a52aed
14 changed files with 1189 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
namespace MkvPropEditWrapper.MkvInfo;
public static class NodeUtils
{
public static IEnumerable<MkvNode> Descendants(this MkvNode root)
{
var nodes = new Stack<MkvNode>(new[] {root});
while (nodes.Any())
{
var node = nodes.Pop();
yield return node;
foreach (var newNode in node.Children)
{
nodes.Push(newNode);
}
}
}
}