Skip to main content

Nada is a package with a lot of useful extensions and methods.

Total Downloads
3.2K
3,244
Published
May 28, 2023
3y ago

Deprecated Package Version

Reason: Legacy

Suggested alternative:Nada.Core*

Get Started

dotnet add package Nada --version 0.2.2
ProductVersions
.NET
net7.0

README

NADA.Net

List-Tree-Converter

Converting a list view into a tree is not a big deal but requires code. Nada.net has an extension method that created a hierarchical structure based on a list with id and parent id.

Convert a list to a tree

// data class with an id and a parent id.
private class Category
{
    public int Id { get; }
    public int ParentId { get; }
}

[Test]
public void GenerateTree_Converts_List_To_Tree()
{
    var categories = new List<Category>() {};

    IEnumerable<TreeItem<Category>> roots = categories.GenerateTree(c => c.Id, c => c.ParentId);

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

NuGet marks this package as deprecated and points to Nada.Core as an alternative.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.