SimpleTreeNode 1.0.0

dotnet add package SimpleTreeNode --version 1.0.0                
NuGet\Install-Package SimpleTreeNode -Version 1.0.0                
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="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                
#r "nuget: SimpleTreeNode, 1.0.0"                
#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 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                

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 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 was computed. 
.NET Framework net20 is compatible.  net35 was computed.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  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.
  • .NETFramework 2.0

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on SimpleTreeNode:

Repository Stars
BG-IT-Edu/School-Programming
Хранилище за свободно учебно съдържание по програмиране, информатика и ИТ за българските училища в помощ на ИТ учителите
Version Downloads Last updated
1.0.0 1,092 2/26/2021

This package is released for educational purposes.