Lost data when serializing treeview
问题 I am writing a program in C#, which assigns data to a class, then assigns that class to the Tag Value of treeview nodes. I am able to serialize my treeview to file using an answer I found here: Saving content of a treeview to a file and load it later. However, the Tag of all the nodes is lost using this method when de-serializing the file, or more likely, they are not even being serialized in the first place. Is it possible to preserve the Tag value of the Nodes when serialized using this