Skip to content

Latest commit

 

History

History
83 lines (52 loc) · 2.58 KB

Assorted.Utils.Serialization.BinarySerializer.Serialize.md

File metadata and controls

83 lines (52 loc) · 2.58 KB

BinarySerializer.Serialize Method

Namespace: Assorted.Utils.Serialization
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0

Overload Description
Serialize<T>(T) Converts an object to its binary representation in base-64 format.
Serialize<T>(T, Stream) Serializes a given object and writes the binary data into the specified System.IO.Stream.

Serialize<T>(T)

Converts an object to its binary representation in base-64 format.

Syntax

public sealed virtual string Serialize<T>(T graph)

Type Parameters

T
The type of object to be serialized.

Parameters

graph: T
An object to be represented in base-64 format.

Return Value

string
The binary representation of the specified object in base-64 format.

Exceptions

Exception Description
System.ArgumentNullException graph is null.

See Also

Serialize<T>(T, Stream)

Serializes a given object and writes the binary data into the specified System.IO.Stream.

Syntax

public virtual void Serialize<T>(T graph, Stream stream)

Type Parameters

T
The type of object to be serialized.

Parameters

graph: T
An System.Object to be serialized.

stream: Stream
A System.IO.Stream object to write the binary representation of the graph into.

Exceptions

Exception Description
System.ArgumentNullException stream or graph is null.

See Also


This document is generated by DG.