Show / Hide Table of Contents

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

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top