src/Inflatable/Utils/Tree/TreeNode.cs
/// <summary>
/// Returns the sub tree as a list.
/// </summary>
/// <returns>The resulting list.</returns>
Returns the sub tree as a list.
Returns the sub tree as a list .
public List<TData> ToList()
        {
            var ReturnList = new List<TData>
            {
                Data
            };
            for (int x = 0, NodesCount = Nodes.Count; x < NodesCount; x++)
            {
                var Node = Nodes[x];
                ReturnList.AddRange(Node.ToList());
            }
            return ReturnList;
        }
public List < TData > ToList ( ) { var ReturnList = new List < TData > { Data } ; for ( int x = 0 , NodesCount = Nodes . Count ; x < NodesCount ; x ++ ) { var Node = Nodes [ x ] ; ReturnList . AddRange ( Node . ToList ( ) ) ; } return ReturnList ; }
Returns the sub tree as a list.
Returns the sub tree as a list .
The resulting list.
The resulting list .