I have a Node class something like this:
class Node { IEnumerable<Node> inputs; }
Which basically defines a simple graph. I want to serialize my graph in a human-friendly form, so usually I would say xml would be a way. But XML was not done with circular dependencies :)
So - what would be the best way to serialize my chart?
I can come up with several ways:
- ditch XML, create your own format.
- use XML, mark each Node with a unique identifier, keep connection lists separate from nodes, and allow after loading
But I think that other people must have had the same problem, so there may be some better options. Does anyone know of a solid approach?
c # xml serialization hyperlink
Pygmy
source share