Class HierarchyNode<T>
Helper class for representing hierarchical relationships between objects.
Inheritance
HierarchyNode<T>
Namespace: BiExcellence.OpenBi.Api.Commands
Assembly: BiExcellence.OpenBi.Api.dll
Syntax
public class HierarchyNode<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the object for this node. |
Constructors
HierarchyNode(T?)
Initializes a new instance of the HierarchyNode<T> class.
Declaration
public HierarchyNode(T? value)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | The value of this node. |
Properties
Children
Gets the children of this node.
Declaration
public IList<HierarchyNode<T>> Children { get; }
Property Value
| Type | Description |
|---|---|
| IList<HierarchyNode<T>> |
Parent
Gets or sets the parent of this node.
Declaration
public HierarchyNode<T>? Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| HierarchyNode<T> |
Methods
Equals(object?)
Determines whether the specified object is equal to the current object. When the specified object is a hierarchy node the Values are compared.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
GetHashCode()
Returns the hash code of the Value.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |