W
wasco77
Hi all,
I've a problem using enum tag.
I need to create a structure like this:
// ---------------------------------------
[Serializable]
public enum typeSupply
{
[XmlEnum(Name = "5VOnly")]
5VOnly,
[XmlEnum(Name = "3V")]
3V
}
// ---------------------------------------
but I can't define an enum item starting with a number.
Do you know how define an item name starting with number?
I use it in order to serialize/deserialize an xml file, which include
a tag with that item.
Thanks in advance.
Walter
I've a problem using enum tag.
I need to create a structure like this:
// ---------------------------------------
[Serializable]
public enum typeSupply
{
[XmlEnum(Name = "5VOnly")]
5VOnly,
[XmlEnum(Name = "3V")]
3V
}
// ---------------------------------------
but I can't define an enum item starting with a number.
Do you know how define an item name starting with number?
I use it in order to serialize/deserialize an xml file, which include
a tag with that item.
Thanks in advance.
Walter