Table of Contents

Interface IMarshaller

Namespace
Savvyio
Assembly
Savvyio.Core.dll

Defines methods for serializing and deserializing objects to and from a System.IO.Stream.

public interface IMarshaller

Methods

Deserialize(Stream, Type)

Deserializes the specified data into an object of returnType.

object Deserialize(Stream data, Type returnType)

Parameters

data Stream

The string from which to deserialize the object graph.

returnType Type

The type of the deserialized object.

Returns

Object

An object of returnType.

Deserialize<TValue>(Stream)

Deserializes the specified data into an object of TValue.

TValue Deserialize<TValue>(Stream data)

Parameters

data Stream

The object from which to deserialize the object graph.

Returns

TValue

An object of TValue.

Type Parameters

TValue

The type of the object to return.

Serialize(Object, Type)

Serializes the specified value to an object of System.IO.Stream.

Stream Serialize(object value, Type inputType)

Parameters

value Object

The object to serialize to System.IO.Stream format.

inputType Type

The type of the object to serialize.

Returns

Stream

A System.IO.Stream of the serialized value.

Serialize<TValue>(TValue)

Serializes the specified value to an object of System.IO.Stream.

Stream Serialize<TValue>(TValue value)

Parameters

value TValue

The object to serialize to System.IO.Stream format.

Returns

Stream

A System.IO.Stream of the serialized value.

Type Parameters

TValue