Show / Hide Table of Contents

Interface ISerialize

Represents a class that serializes and de-serializes types.

Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
public interface ISerialize
Remarks

Instances of this class must be designed to be multi-thread safe such that they can be shared between threads.

Methods

Deserialize<T>(Stream)

De-serializes an object from a System.IO.Stream.

Declaration
T Deserialize<T>(Stream input)
Parameters
System.IO.Stream input

The stream with the serialized object.

Returns
T

The de-serialized object.

Type Parameters
T

The type of object to de-serialize.

Serialize<T>(Stream, T)

Serializes an object to a System.IO.Stream.

Declaration
void Serialize<T>(Stream output, T graph)
Parameters
System.IO.Stream output

The stream to serialize the object to.

T graph

The object to serialize.

Type Parameters
T

The type of object to serialize.

Extension Methods

ObjectExtensions.DeepClone<T>(T)
SerializeExtensions.Serialize<T>(ISerialize, T)
SerializeExtensions.Deserialize<T>(ISerialize, String)
SerializeExtensions.Deserialize<T>(ISerialize, Byte[])
SerializeExtensions.Deserialize<T>(ISerialize, IDataRecord, Int32)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX