D
Diego
I have an Enum like this:
public enum DAYS
{
Monday = 1,
Tuesday = 2,
Wednesday = 3,
Thursday = 4,
Friday = 5,
Saturday = 6,
Sunday = 7
}
By default enumerations are de-/serilized (in XML) as literals, e.g.
<Tuesday>.
I would like to be able to de-/serialize the Enum as "literal"
(<Tuesday>) and as "integer" (<2>) depending on the user (runtime).
My first idea was XmlEnum, but it does not work runtime :-(
???
Thanks
public enum DAYS
{
Monday = 1,
Tuesday = 2,
Wednesday = 3,
Thursday = 4,
Friday = 5,
Saturday = 6,
Sunday = 7
}
By default enumerations are de-/serilized (in XML) as literals, e.g.
<Tuesday>.
I would like to be able to de-/serialize the Enum as "literal"
(<Tuesday>) and as "integer" (<2>) depending on the user (runtime).
My first idea was XmlEnum, but it does not work runtime :-(
???
Thanks