This project is read-only.
To explicitly instruct the serializer to serialize a specific field or property, simply decorate it with a XmlElement, XmlAttribute or DataMember attribute. By adding any of these tags the serializer will add the decorated field/property to its list of entities to serialize/deserialize. Now you may wonder, "Why would I need to decorate a field, doesn't DotSerialize automatically serialize fields?". There are two reasons why a field would not be serialized by default. One is that your class inherits from another class in which the field was explicitly marked to be ignored. The other case is if your class has a DataContract attribute in which case the serliaizer is in white list mode.

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