Show / Hide Table of Contents

Interface ISerializer

Provides functionality for serializing and deserializing objects.

Namespace: Sartorius.SAF.Serialization
Assembly: Sartorius.SAF.dll
Syntax
public interface ISerializer

Methods

View Source

Deserialize<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.

View Source

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.

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)

See Also

ISerializerMetadata
SerializerExportAttribute
  • View Source
Back to top Generated by DocFX