From what I do understand, you should think again, whether your decision to store strings in the tag is really that good.
In my projects, I do store full objects in the
TreeNode.Tag
[
^] property.
This way, you could put the values in properties of my own class, create an instance of this class and asign it to the
Tag
property.
When reading, simply cast the values of the
Tag
property back to your original object.
Much easier and safer than your string parsing idea, in my opinion :-)