|
EGDL2 2.1
|
The serialization converter allows for customization of the serialization process. More...

Public Member Functions | |
| virtual object | CreateInstance (fsData data, Type storageType) |
| Construct an object instance that will be passed to TryDeserialize. This should not deserialize the object. | |
| virtual bool | RequestCycleSupport (Type storageType) |
| If true, then the serializer will support cyclic references with the given converted type. | |
| virtual bool | RequestInheritanceSupport (Type storageType) |
| If true, then the serializer will include inheritance data for the given converter. | |
| fsResult | TrySerialize (object instance, out fsData serialized, Type storageType) |
| Serialize the actual object into the given data storage. | |
| fsResult | TryDeserialize (fsData data, ref object instance, Type storageType) |
| Deserialize data into the object instance. | |
Public Attributes | |
| fsSerializer | Serializer |
| The serializer that was owns this converter. | |
The serialization converter allows for customization of the serialization process.
You do not want to derive from this class - there is no way to actually use it within the serializer.. Instead, derive from either fsConverter or fsDirectConverter
|
inlinevirtual |
Construct an object instance that will be passed to TryDeserialize. This should not deserialize the object.
| data | The data the object was serialized with. |
| storageType | The field/property type that is storing the instance. |
Reimplemented in FullSerializer.Internal.fsEnumConverter, FullSerializer.Internal.fsGuidConverter, FullSerializer.Internal.fsIEnumerableConverter, FullSerializer.Internal.fsNullableConverter, and FullSerializer.Internal.fsWeakReferenceConverter.

|
inlinevirtual |
If true, then the serializer will support cyclic references with the given converted type.
| storageType | The field/property type that is currently storing the object that is being serialized. |
Reimplemented in FullSerializer.Internal.fsEnumConverter, FullSerializer.Internal.fsGuidConverter, and FullSerializer.Internal.fsWeakReferenceConverter.

|
inlinevirtual |
If true, then the serializer will include inheritance data for the given converter.
| storageType | The field/property type that is currently storing the object that is being serialized. |
Reimplemented in FullSerializer.Internal.fsEnumConverter, FullSerializer.Internal.fsGuidConverter, and FullSerializer.Internal.fsWeakReferenceConverter.
|
abstract |
Deserialize data into the object instance.
| data | Serialization data to deserialize from. |
| instance | The object instance to deserialize into. |
| storageType | The field/property type that is storing the instance. |
|
abstract |
Serialize the actual object into the given data storage.
| instance | The object instance to serialize. This will never be null. |
| serialized | The serialized state. |
| storageType | The field/property type that is storing this instance. |