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
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 Stream.
Stream Serialize(object value, Type inputType)
Parameters
value
objectThe object to serialize to Stream format.
inputType
TypeThe 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
value
TValueThe object to serialize to Stream format.
Returns
Type Parameters
TValue