C# Class ICSharpCode.NRefactory.Utils.TreeTraversal

Static helper methods for traversing trees.
Show file Open project: sq/ILSpy-JSIL Class Usage Examples

Public Methods

Method Description
PostOrder ( root, Func recursion ) : IEnumerable

Converts a tree data structure into a flat list by traversing it in post-order.

PostOrder ( IEnumerable input, Func recursion ) : IEnumerable

Converts a tree data structure into a flat list by traversing it in post-order.

PreOrder ( root, Func recursion ) : IEnumerable

Converts a tree data structure into a flat list by traversing it in pre-order.

PreOrder ( IEnumerable input, Func recursion ) : IEnumerable

Converts a tree data structure into a flat list by traversing it in pre-order.

Method Details

PostOrder() public static method

Converts a tree data structure into a flat list by traversing it in post-order.
public static PostOrder ( root, Func recursion ) : IEnumerable
root The root element of the tree.
recursion Func The function that gets the children of an element.
return IEnumerable

PostOrder() public static method

Converts a tree data structure into a flat list by traversing it in post-order.
public static PostOrder ( IEnumerable input, Func recursion ) : IEnumerable
input IEnumerable The root elements of the forest.
recursion Func The function that gets the children of an element.
return IEnumerable

PreOrder() public static method

Converts a tree data structure into a flat list by traversing it in pre-order.
public static PreOrder ( root, Func recursion ) : IEnumerable
root The root element of the tree.
recursion Func The function that gets the children of an element.
return IEnumerable

PreOrder() public static method

Converts a tree data structure into a flat list by traversing it in pre-order.
public static PreOrder ( IEnumerable input, Func recursion ) : IEnumerable
input IEnumerable The root elements of the forest.
recursion Func The function that gets the children of an element.
return IEnumerable