I have a class defined like this:
[XmlRoot(ElementName="request")]
public class Request
{
#region Attributes
[XmlAttribute(AttributeName = "version")]
public string Version
{
get
{
return "1.0";
}
}
[XmlAttribute(AttributeName = "action")]
public EAction Action
{
get;
set;
}
#endregion
But when I serialize it, "version" doesn't show up in the attribute (while "action" does).
What's going wrong?