src/GenFx.Components/Trees/TreeEntityExtensions.cs
/// <summary>
/// Returns an enumerable collection of <see cref="TreeNode"/> objects containing the nodes
/// of the tree sorted in postfix 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 postfix order.
Returns an enumerable collection of objects containing the nodes of the tree sorted in postfix order .
private static IEnumerable<TreeNode> GetPostfixTree(TreeNode? node)
        {
            if (node != null)
            {
                foreach (TreeNode childNode in node.ChildNodes)
                {
                    foreach (TreeNode subChildNode in TreeEntityExtensions.GetPostfixTree(childNode))
                    {
                        yield return subChildNode;
                    }
                }
                yield return node;
            }
        }
private static IEnumerable < TreeNode > GetPostfixTree ( TreeNode ? node ) { if ( node != null ) { foreach ( TreeNode childNode in node . ChildNodes ) { foreach ( TreeNode subChildNode in TreeEntityExtensions . GetPostfixTree ( childNode ) ) { yield return subChildNode ; } } yield return node ; } }
Returns an enumerable collection of  objects containing the nodes
of the tree sorted in postfix order.
Returns an enumerable collection of objects containing the nodes of the tree sorted in postfix 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 .