J
JezB
I have trawled through the System.Collections namespace looking for some
structure that will enable me to represent and manipulate tree structures,
as yet to no avail.
Of course I can represent a tree as a Hashtable with one part of the Value
of each entry pointing to the key of the parent, but it strikes me that this
is only usefull for drilling up from a child to a parent node - to find all
the children of a node I'd need to scan the whole table!
There must be a native tree-like structure with supporting methods to help
in tree-walking ... please someone point me to it !
structure that will enable me to represent and manipulate tree structures,
as yet to no avail.
Of course I can represent a tree as a Hashtable with one part of the Value
of each entry pointing to the key of the parent, but it strikes me that this
is only usefull for drilling up from a child to a parent node - to find all
the children of a node I'd need to scan the whole table!
There must be a native tree-like structure with supporting methods to help
in tree-walking ... please someone point me to it !