This project is read-only.
Ignoring a field or property couldn't be simpler. Simply decorate it with the XmlIgnore attribute. Any property or field decorated with this attribute will be ignored by the serializer. The example below demonstrates this attribute:
class User
{
   [XmlAttribute("name")] string Name { get; set; }
   [XmlIgnore] string Password { get; set; }
   [XmlElement("domain", 1)] string Domain { get; set; }
   [XmlAttribute("dept")] string Department { get; set; }   
   [XmlElement("background", 2)] string Background { get; set; }
}

Last edited Feb 2, 2015 at 2:29 AM by WiredWiz, version 2