SimpleTreeNode 1.0.0

.NET Standard 2.0 .NET Framework 2.0
Install-Package SimpleTreeNode -Version 1.0.0
dotnet add package SimpleTreeNode --version 1.0.0
<PackageReference Include="SimpleTreeNode" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SimpleTreeNode --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SimpleTreeNode, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install SimpleTreeNode as a Cake Addin
#addin nuget:?package=SimpleTreeNode&version=1.0.0

// Install SimpleTreeNode as a Cake Tool
#tool nuget:?package=SimpleTreeNode&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SimpleTreeNode

Very simple TreeNode<T> class for .NET, used for educational purposes.

Usage Example

using SimpleTreeNode;
using System;

class Example
{
    static void Main()
    {
        TreeNode<int> tree = new TreeNode<int>(7,
            new TreeNode<int>(19,
                new TreeNode<int>(1),
                new TreeNode<int>(12),
                new TreeNode<int>(31)
            ),
            new TreeNode<int>(21),
            new TreeNode<int>(14,
                new TreeNode<int>(23),
                new TreeNode<int>(6)
            )
        );
        Console.WriteLine(tree);
    }
}

Output:

7
  19
    1
    12
    31
  21
  14
    23
    6

Another Example

TreeNode<string> peopleTree = 
    new TreeNode<string>("The big boss",
        new TreeNode<string>("Steve",
            new TreeNode<string>("Maria"),
            new TreeNode<string>("Peter",
                new TreeNode<string>("Teodora")
            ),
            new TreeNode<string>("Nick")
        ),
        new TreeNode<string>("Diana",
            new TreeNode<string>("Frank"),
            new TreeNode<string>("Kim")
        ),
        new TreeNode<string>("Nia",
            new TreeNode<string>("Ivan"),
            new TreeNode<string>("Prakash")
        )
);
Console.WriteLine(peopleTree);

Output:

The big boss
  Steve
    Maria
    Peter
      Teodora
    Nick
  Diana
    Frank
    Kim
  Nia
    Ivan
    Prakash
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net20 net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 2.0

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 340 2/26/2021

This package is released for educational purposes.