Interface IMarshaller
- Namespace
- Savvyio
- Assembly
- Savvyio.Core.dll
Defines methods for serializing and deserializing objects to and from a Stream.
public interface IMarshaller
Methods
Deserialize(Stream, Type)
Deserializes the specified data into an object of returnType.
object Deserialize(Stream data, Type returnType)
Parameters
dataStreamThe string from which to deserialize the object graph.
returnTypeTypeThe 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
dataStreamThe object from which to deserialize the object graph.
Returns
- TValue
An object of
TValue.
Type Parameters
TValueThe type of the object to return.
Serialize(object, Type)
Serializes the specified value to an object of Stream.
Stream Serialize(object value, Type inputType)
Parameters
valueobjectThe object to serialize to Stream format.
inputTypeTypeThe type of the object to serialize.
Returns
Serialize<TValue>(TValue)
Serializes the specified value to an object of Stream.
Stream Serialize<TValue>(TValue value)
Parameters
valueTValueThe object to serialize to Stream format.
Returns
Type Parameters
TValue