Interface IFastSerializationTypeSurrogate
Interface to allow helper classes to be used to serialize objects that are not directly supported by SerializationWriter/SerializationReader
Namespace: SuperOffice.IO
Assembly: SoCore.dll
Syntax
public interface IFastSerializationTypeSurrogate
Methods
Deserialize(SerializationReader, Type)
Deserializes an object of the supplied type from the SerializationReader.
Declaration
object Deserialize(SerializationReader reader, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationReader | reader | The SerializationReader containing the serialized object. |
| Type | type | The type of object required to be deserialized. |
Returns
| Type | Description |
|---|---|
| object |
Serialize(SerializationWriter, object)
FastSerializes the object into the SerializationWriter.
Declaration
void Serialize(SerializationWriter writer, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationWriter | writer | The SerializationWriter into which the object is to be serialized. |
| object | value | The object to serialize. |
SupportsType(Type)
Allows a surrogate to be queried as to whether a particular type is supported
Declaration
bool SupportsType(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type being queried |
Returns
| Type | Description |
|---|---|
| bool | true if the type is supported; otherwise false |