Utils Class |
Providing utilities for work with trees
Inheritance Hierarchy
System.Object
Gamanet.C4.SimpleInterfaces.Utils
Gamanet.C4.SimpleInterfaces.Utils
Namespace: Gamanet.C4.SimpleInterfaces
Assembly: Gamanet.C4.SimpleInterfaces (in Gamanet.C4.SimpleInterfaces.dll) Version: 2026.0.0.242
Syntax
C#
public static class Utils
The Utils type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| FindNode<T> | Finds the node by entity Id. | |
| GetSubtree<T>(TreeNode<T>) | Sorts the tree by parents in order to be able to insert it by parents first. | |
| GetSubtree<T>(TreeNode<T>, Guid) | Sorts the tree by parents in order to be able to insert it by parents first | |
| ListToHierarchy<T> | Lists to hierarchy in order to be able to insert it by parents first. | |
| ListToTree<T>(IList<T>) | Converts list to tree structure with one root. | |
| ListToTree<T>(IList<T>, Guid) | Lists to tree. | |
| SortHierarchyByParents<T> | Sorts the hierarchical structure by parents in order to be able to insert it by parents first |
See Also