E
Ed Debrot
I am trying to write a simple serializer/deserializer for a set of
objects/classes that I have. When I deserialize I'd like to write the actual
variable name to my XML file but I don't know how to determine this at
run-time. I know the standard XmlSerializer must do this because it writes
the variable name and not the class.
Any ideas? I have a feeling there is a standard way to determine the
variable name but I have not idea. Something like
{
int x;
x.name();
}
or something similar.
objects/classes that I have. When I deserialize I'd like to write the actual
variable name to my XML file but I don't know how to determine this at
run-time. I know the standard XmlSerializer must do this because it writes
the variable name and not the class.
Any ideas? I have a feeling there is a standard way to determine the
variable name but I have not idea. Something like
{
int x;
x.name();
}
or something similar.