Class TreeNode
Tree class to visualize either a dependency or observer tree from the Dependency graph.
Inheritance
System.Object
TreeNode
Namespace: Cortex.Net.Api
Assembly: Cortex.Net.dll
Syntax
public class TreeNode : object
Properties
| Improve this Doc View SourceChildren
Gets children of this TreeNode.
Declaration
public IEnumerable<TreeNode> Children { get; }
Property Value
Type | Description |
---|---|
IEnumerable<TreeNode> |
Name
Gets name of this item.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetDependencyTree(IDependencyNode)
Creates the dependency tree from this node to all the children it is observing.
Declaration
public static TreeNode GetDependencyTree(IDependencyNode startNode)
Parameters
Type | Name | Description |
---|---|---|
IDependencyNode | startNode | The node to start with. |
Returns
Type | Description |
---|---|
TreeNode | A complete tree from the current node. |
GetObserverTree(IDependencyNode)
Creates an observer tree from this node to all the parents that observe it.
Declaration
public static TreeNode GetObserverTree(IDependencyNode startNode)
Parameters
Type | Name | Description |
---|---|---|
IDependencyNode | startNode | The node to start with. |
Returns
Type | Description |
---|---|
TreeNode | A complete tree from the current node. |
ToString()
Prints the current tree.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string with line breaks and indentation. |