C# How to represent and traverse an N-Ary tree
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.