C# Class ICSharpCode.NRefactory.Utils.TreeTraversal

Static helper methods for traversing trees.
Afficher le fichier Open project: sq/ILSpy-JSIL Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat IEnumerable

PostOrder() public static méthode

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.
Résultat IEnumerable

PreOrder() public static méthode

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.
Résultat IEnumerable

PreOrder() public static méthode

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.
Résultat IEnumerable