Attributes
UniversalSerializer normally does not need attributes, unlike BinaryFormatter or SoapFormatter for example.
Nevertheless, it can take some attributes into account, at your will.
Attribute |
Usage |
---|---|
UniversalSerializerLib3. ForceSerializeAttribute |
Orders UniversalSerializer to serialize this field or property, not taking into account other attributes. |
UniversalSerializerLib3. ForceNotSerializeAttribute |
Orders UniversalSerializer to never serialize this field or property, not taking into account other attributes. |
System. NonSerializedAttribute |
Orders the serializer to not serialize a field. Comes from BinaryFormatter. Can not be applied to a property. |
System. Xml. Serialization. XmlIgnoreAttribute |
Orders the serializer to not serialize a field or a property. Comes from XmlSerializer. |
System. ComponentModel. EditorBrowsableAttribute |
Normally, orders the IDE to not present the element (field, property, class, etc). UniversalSerializer interprets it differently and does not serialize the field or property. |