Open.Hierarchy
2.0.0
dotnet add package Open.Hierarchy --version 2.0.0
NuGet\Install-Package Open.Hierarchy -Version 2.0.0
<PackageReference Include="Open.Hierarchy" Version="2.0.0" />
paket add Open.Hierarchy --version 2.0.0
#r "nuget: Open.Hierarchy, 2.0.0"
// Install Open.Hierarchy as a Cake Addin #addin nuget:?package=Open.Hierarchy&version=2.0.0 // Install Open.Hierarchy as a Cake Tool #tool nuget:?package=Open.Hierarchy&version=2.0.0
Open.Hierarchy
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 theIParent
interface.
Cloning
.Clone(node)
: Creates a copy of the node map.
Recycling
Factory.Recycle(node)
: Recycles aNode<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 | Versions 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 is compatible. 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. net9.0 is compatible. |
.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. |
-
.NETStandard 2.0
- Open.Disposable.ObjectPools (>= 2.9.0)
-
.NETStandard 2.1
- Open.Disposable.ObjectPools (>= 2.9.0)
-
net8.0
- Open.Disposable.ObjectPools (>= 2.9.0)
-
net9.0
- Open.Disposable.ObjectPools (>= 2.9.0)
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 |
---|---|---|
2.0.0 | 68 | 11/17/2024 |
1.10.0 | 126 | 5/25/2024 |
1.9.2 | 321 | 4/15/2023 |
1.9.1 | 1,806 | 4/18/2022 |
1.9.0 | 963 | 4/16/2022 |
1.8.4 | 470 | 2/25/2022 |
1.8.3 | 390 | 7/4/2021 |
1.8.1 | 550 | 7/16/2020 |
1.8.0 | 633 | 7/11/2020 |
1.7.2 | 519 | 6/10/2020 |
1.7.1 | 604 | 1/4/2020 |
1.7.0 | 512 | 12/19/2019 |
1.6.2 | 620 | 7/4/2019 |
1.6.1 | 557 | 7/3/2019 |