C# How to represent and traverse an N-Ary tree
02:42 04 Sep 2020

tree example

I need a structure to represent an N-ary tree, and then convert it to a JSON, in C#. I am using .NET Core. I want to be able to traverse the tree of course. I couldn't find anything for representing an N-Ary tree with C#, an N-ary tree it's not a binary tree, which instead, I found a lot of documentation about it.

c# json tree