Generated by DocFX

Class BinaryNode<TNode>

Tree node for binary trees.

Inheritance
System.Object
BinaryNode<TNode>
RedBlackTreeNode<T>
Implements
IBinaryTreeNode<TNode>
Namespace: ISynergy.Framework.Core.Collections
Assembly: ISynergy.Framework.Core.dll
Syntax
public class BinaryNode<TNode> : IEquatable<TNode>, IBinaryTreeNode<TNode> where TNode : BinaryNode<TNode>
Type Parameters
Name Description
TNode

The class type for the nodes of the tree.

Properties

View Source

Children

Gets or sets the collection of child nodes under this node.

Declaration
public TNode[] Children { get; set; }
Property Value
Type Description
TNode[]
View Source

IsLeaf

Gets whether this node is a leaf (has no children).

Declaration
public bool IsLeaf { get; }
Property Value
Type Description
System.Boolean
View Source

Left

Gets or sets the left subtree of this node.

Declaration
public TNode Left { get; set; }
Property Value
Type Description
TNode
View Source

Right

Gets or sets the right subtree of this node.

Declaration
public TNode Right { get; set; }
Property Value
Type Description
TNode

Methods

View Source

Equals(TNode)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(TNode other)
Parameters
Type Name Description
TNode other

An object to compare with this object.

Returns
Type Description
System.Boolean

true if the current object is equal to the other parameter; otherwise, false.

Implements

IBinaryTreeNode<TNode>

Extension Methods

Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)