Delete ITreeNode.cs

This commit is contained in:
Belim 2020-09-20 19:17:58 +02:00 committed by GitHub
parent 46a9300093
commit 42a81a65b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,25 +0,0 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Privatezilla.ITreeNode
{
public static class ITreeNode
{
// Retrieving TreeView nodes as IEnumerable
public static IEnumerable<TreeNode> All(this TreeNodeCollection nodes)
{
if (nodes == null) throw new ArgumentNullException(nameof(nodes));
foreach (TreeNode n in nodes)
{
yield return n;
foreach (TreeNode child in n.Nodes.All())
{
yield return child;
}
}
}
}
}