Skip to main content

Node<T> Members

A base class that defines a node in a tree-like structure of objects.


Name Description
Node(T) Creates a new instance of the Node<T> class with the specified node value type.


Name Description
Children Provides access to a collection of the node’s child nodes.
Parent Returns the node’s parent node. Returns null (Nothing in Visual Basic) for the root node.
Value Gets or sets the node’s value.


Name Description
AbandonChildren() Removes all child nodes from the node.
AddChildren(Node<T>[]) Adds child nodes to the node.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current Node<T> instance.
ForEach(Action<Node<T>>) Performs the specified action on the node’s each child node.
GetHashCode() Serves as the default hash function.
GetParents() Returns a collection of the node’s parent nodes.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also