Phil,
Must the format be human-readable? If not, I recommend using the
BinaryFormatter or SoapFormatter (I believe this is depricated or frozen for
..NET 2.0) instead of the XmlSerializer.
Nested classes are classes whose type definition is located in a class.
It doesn't matter for serialization purposes because an instance of that
type will be like any other type.
If you mean private references in the instance, then XML serialization
isn't going to help, as it only serializes what is publically accessible.
You are better off using traditional serialization for the more complex
structures.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Phil Da Lick!" <ph***********@NOSPAM.hotmail.com> wrote in message
news:42*********************@ptn-nntp-reader03.plus.net...
Hello,
Anyone got any good examples of how to serialize a nested class?
My outer class has got ArrayList members for inner classes, each with
their own data. I need to serialise the lot into an xml file for easy
load/save.