I have a class which has a number of public fields that are marked with XML serializable attributes:
[XmlAttribute]
public string ExampleField = string.Empty;
I intend to refactor these fields (and only these fields) as auto-properties:
[XmlAttribute]
public string ExampleField { get; set; }
Will there be any issue with deserializing instances that were created using the previous version of the class?
It appears to work just fine…
(
XmlSerializeris my wrapper to the .Net Xml Serialization classes.)Output: