❔ Sorting a list of objects into a tree structure
I have a set of objects that looks roughly like this:
To visualize the data I want to sort the data into a graph. Is there a built in way of doing this in C#?
For the actual visualisation I am happy with just viewing it in the debugger. The reason for asking the question instead of just doing it is that I want to get better at using built in functionality. I string.Join(", ", array) was a game changer for example
class Item
{
public uint Id;
public uint ParentId;
}To visualize the data I want to sort the data into a graph. Is there a built in way of doing this in C#?
For the actual visualisation I am happy with just viewing it in the debugger. The reason for asking the question instead of just doing it is that I want to get better at using built in functionality. I string.Join(", ", array) was a game changer for example