C# how to make date tree???

hi,

  I want to get date tree from the C#,but it doesn't work,who can help me? thanks

  • up

    David Rutten

    A data tree is not a nested collection. You have to actually create a new DataTree<string> instance instead of string[,]

    DataTree<string> tree = new DataTree<string>();

    tree.Add(new GH_Path(0,0,0), "a1");

    tree.Add(new GH_Path(0,0,0), "a2");

    tree.Add(new GH_Path(0,0,0), "a3");

    tree.Add(new GH_Path(0,0,1), "b1");

    tree.Add(new GH_Path(0,0,1), "b2");

    tree.Add(new GH_Path(0,0,1), "b3");

    1