Delete ITreeNode.cs
This commit is contained in:
parent
46a9300093
commit
42a81a65b3
1 changed files with 0 additions and 25 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue