Interface IBinaryTreeNode<TNode>
Common interface for tree nodes, such as BinaryTree<TNode> and RedBlackTree<T>.
Namespace: ISynergy.Framework.Core.Abstractions.Collections
Assembly: ISynergy.Framework.Core.dll
Syntax
public interface IBinaryTreeNode<TNode>
where TNode : IBinaryTreeNode<TNode>
Type Parameters
Name | Description |
---|---|
TNode | The type of the tree node. |
Properties
View SourceChildren
Gets or sets the collection of child nodes under this node.
Declaration
TNode[] Children { get; set; }
Property Value
Type | Description |
---|---|
TNode[] |
IsLeaf
Gets whether this node is a leaf (has no children).
Declaration
bool IsLeaf { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Extension Methods
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
See Also
BinaryTree<TNode>
RedBlackTree<T>