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
StreamThe string from which to deserialize the object graph.
returnType
TypeThe 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
StreamThe 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
ObjectThe object to serialize to System.IO.Stream format.
inputType
TypeThe 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
TValueThe object to serialize to System.IO.Stream format.
Returns
- Stream
A System.IO.Stream of the serialized
value
.
Type Parameters
TValue