Show / Hide Table of Contents

Class HierarchyElement

Hierarchical structure to store object

Inheritance
System.Object
HierarchyElement
Namespace: SigStat.Common.Helpers
Assembly: SigStat.Common.dll
Syntax
public class HierarchyElement : IEnumerable<HierarchyElement>

Constructors

| Improve this Doc View Source

HierarchyElement()

Create an emty element

Declaration
public HierarchyElement()
| Improve this Doc View Source

HierarchyElement(Object)

Create a new element with content

Declaration
public HierarchyElement(Object Content)
Parameters
Type Name Description
Object Content

Content of the new element

Properties

| Improve this Doc View Source

Children

Gets the children.

Declaration
public List<HierarchyElement> Children { get; }
Property Value
Type Description
List<HierarchyElement>
| Improve this Doc View Source

Content

Gets or sets the content.

Declaration
public Object Content { get; set; }
Property Value
Type Description
Object

Methods

| Improve this Doc View Source

Add(HierarchyElement)

Adds the specified element as a child

Declaration
public void Add(HierarchyElement child)
Parameters
Type Name Description
HierarchyElement child
| Improve this Doc View Source

GetCount()

Returns number of elements under this node and itself

Declaration
public int GetCount()
Returns
Type Description
System.Int32
| Improve this Doc View Source

GetDepth()

Return the hierarchy's depth from this node

Declaration
public int GetDepth()
Returns
Type Description
System.Int32
| Improve this Doc View Source

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<HierarchyElement> GetEnumerator()
Returns
Type Description
IEnumerator<HierarchyElement>
| Improve this Doc View Source

ToString()

Converts to string.

Declaration
public override string ToString()
Returns
Type Description
System.String

A that represents this instance.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX