src/GenFx.Components/Trees/TreeEntityExtensions.cs
/// <summary>
/// Returns an enumerable collection of <see cref="TreeNode"/> objects containing the nodes
/// of the tree sorted in prefix order.
/// </summary>
/// <param name="node"><see cref="TreeNode"/> to start at.</param>
/// <returns>
/// An enumerable collection of <see cref="TreeNode"/> objects containing the nodes
/// of the tree sorted in prefix order.
/// </returns>
Returns an enumerable collection of  objects containing the nodes
of the tree sorted in prefix order.
Returns an enumerable collection of objects containing the nodes of the tree sorted in prefix order .
private static IEnumerable<TreeNode> GetPrefixTree(TreeNode? node)
        {
            if (node != null)
            {
                yield return node;
                foreach (TreeNode childNode in node.ChildNodes)
                {
                    foreach (TreeNode subChildNode in TreeEntityExtensions.GetPrefixTree(childNode))
                    {
                        yield return subChildNode;
                    }
                }
            }
        }
private static IEnumerable < TreeNode > GetPrefixTree ( TreeNode ? node ) { if ( node != null ) { yield return node ; foreach ( TreeNode childNode in node . ChildNodes ) { foreach ( TreeNode subChildNode in TreeEntityExtensions . GetPrefixTree ( childNode ) ) { yield return subChildNode ; } } } }
Returns an enumerable collection of  objects containing the nodes
of the tree sorted in prefix order.
Returns an enumerable collection of objects containing the nodes of the tree sorted in prefix order .
An enumerable collection of  objects containing the nodes
of the tree sorted in prefix order.
An enumerable collection of objects containing the nodes of the tree sorted in prefix order .
node
TreeNode?
to start at.
to start at .