| Enumerator |
|---|
| None |
No serialization flags
|
| DefaultZero |
Do not serialize member when it has default value, null for objects, zeros for structs. In binary streams, bit is written to indicate whether object had a value or not.
|
| Nullable |
Alias to default value.
|
| Dynamic |
Member can store subclasses of specified type, actual member type will be serialized as well. Valid only on class members (not for value types).
|
| DefaultValueOrEmpty |
Applies only to collections. When serializing empty collection (zero element count) it will behave like DefaultValue.
|
| DynamicDefault |
Same as dynamic, but stores a bit indicating whether serialized type is different from member type or not. When it's same, type is not serialized. Usefull when some instances have default type.
|
| None |
No serialization flags
|
| DefaultZero |
Do not serialize member when it has default value, null for objects, zeros for structs. In binary streams, bit is written to indicate whether object had a value or not.
|
| Nullable |
Alias to default value.
|
| Dynamic |
Member can store subclasses of specified type, actual member type will be serialized as well. Valid only on class members (not for value types).
|
| DefaultValueOrEmpty |
Applies only to collections. When serializing empty collection (zero element count) it will behave like DefaultValue.
|
| DynamicDefault |
Same as dynamic, but stores a bit indicating whether serialized type is different from member type or not. When it's same, type is not serialized. Usefull when some instances have default type.
|