Hi there, I have an node object which specifies the node level
public class Node
{
public int Level { get; set; }
}
I want to use an ordered list of nodes to construct a treeview
var nodes = new[]
{
new Node(){Level = 0},
new Node(){Level = 1},
new Node(){Level = 1},
new Node(){Level = 1},
new Node(){Level = 2},
new Node(){Level = 1},
new Node(){Level = 2},
new Node(){Level = 2},
new Node(){Level = 3},
};
What is the most efficient way to do this.
Thanks
Rohan