Interface ISerializer
Provides functionality for serializing and deserializing objects.
Namespace: Sartorius.SAF.Serialization
Assembly: Sartorius.SAF.dll
Syntax
public interface ISerializer
Methods
View SourceDeserialize<T>(Stream)
Deserializes an object of type T
from the specified stream.
Declaration
T Deserialize<T>(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream from which the serialized object is read. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | The type to deserialize. |
Serialize(Stream, Object)
Serializes the specified graph to the specified stream.
Declaration
void Serialize(Stream stream, object graph)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream in which the serialized object is written. |
System.Object | graph | The graph to serialize. |