xml serialize instance of class

  • Thread starter Thread starter John A Grandy
  • Start date Start date
J

John A Grandy

I would like to xml serialize instances of a class solely for the purpose of
md5 hashing the result and naming data-files with the md5 hash so that there
is a 1:1 correspondence between a data-file and in instance of my class.

My class contains references to instances of other classes.

How would I go about implementing this ?
 
I'm not having luck serializing public properties that return instances of
other classes, or strongly-types lists of instances of other classes.

How to achieve recursive serialization ?
 
What happens? Do you get an exception? Those types must also be
serializable. Note that XmlSerializer is a *tree* serializer; it won't
like recursive graphs. DataContractSerializer can support this, but
gives different layout.

Marc
 
Back
Top