Vbnet tree data duplication

Hi
I would like to manipulate the data of a data tree in vbnet whilst keeping the original data. So I guess I need to copy or duplicate the data tree and then work on the new data tree. In the code below, treeA also has path(0) removed which is not the result I want. How can I duplicate treeA so it’s data doesn’t change?
thanks
cstree%20data%20duplicate%20vbnet

There is a grasshopper thread discussing this in a C# context:

For a wider discussion of cloning in .NET (why, how, issues, performance) there is this:
https://stackoverflow.com/questions/129389/how-do-you-do-a-deep-copy-of-an-object-in-net-c-specifically.

For VBNet-specific info you could try googling VBNet deep copy.

Regards
Jeremy

Thank you jeremy
the grasshopper thread was useful…
thanks again