Open.Hierarchy 1.9.2

dotnet add package Open.Hierarchy --version 1.9.2
NuGet\Install-Package Open.Hierarchy -Version 1.9.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Open.Hierarchy" Version="1.9.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Open.Hierarchy --version 1.9.2
#r "nuget: Open.Hierarchy, 1.9.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Open.Hierarchy as a Cake Addin
#addin nuget:?package=Open.Hierarchy&version=1.9.2

// Install Open.Hierarchy as a Cake Tool
#tool nuget:?package=Open.Hierarchy&version=1.9.2

Open.Hierarchy

NuGet

Introduction

Open.Hierarchy is a versatile library designed for creating and manipulating tree structures with a focus on efficiency and ease of use. With the Node<T> class and its supporting components, this library enables users to create tree structures that have a unidirectional parent-to-child relationship, enabling more efficient use of memory and simplified garbage collection.

Node<T>

Node<T> is a versatile class that represents a node in a bidirectional tree. It can be used as-is or to act as a bidirectional map of a unidirectional tree. In a bidirectional tree, it is crucial to ensure that a node cannot occur multiple times, although its value can occur any number of times. This approach enables the creation of 'value sub-trees' with duplicate references but not duplicate instances. By using Node<T> as a container, a single instance can exist multiple times in a tree but still be uniquely identifiable by its position.

Node<T>.Factory

The Node<T>.Factory class provides useful methods for creating, mapping, cloning, and recycling Node<T> instances:

Blank Instance

  • .GetBlankNode(): Retrieves a blank node from the underlying object pool or creates a new one.

Mapping

  • .Map(root): Generates a node hierarchy map based on whether the root or any of its children implement the IParent interface.

Cloning

  • .Clone(node): Creates a copy of the node map.

Recycling

  • Factory.Recycle(node): Recycles a Node<T> instance by tearing down the node itself and its children, returning them to an object pool.

WARNING: The Factory.Recycle(node) method is a potential source of issues if multiple references are retained. It must be used with care to avoid unexpected behavior.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Open.Hierarchy:

Package Downloads
Open.Evaluation

A framework for evaluating complex formulas. Part of the "Open" set of libraries.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.9.2 286 4/15/2023
1.9.1 1,719 4/18/2022
1.9.0 909 4/16/2022
1.8.4 445 2/25/2022
1.8.3 359 7/4/2021
1.8.1 517 7/16/2020
1.8.0 606 7/11/2020
1.7.2 495 6/10/2020
1.7.1 578 1/4/2020
1.7.0 487 12/19/2019
1.6.2 592 7/4/2019
1.6.1 535 7/3/2019