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 . |
Converts an object to its binary representation in base-64 format.
public sealed virtual string Serialize<T>(T graph)
T
The type of object to be serialized.
graph
: T
An object to be represented in base-64 format.
string
The binary representation of the specified object in base-64 format.
Exception | Description |
---|---|
System.ArgumentNullException | graph is null . |
Serializes a given object and writes the binary data into the specified System.IO.Stream
.
public virtual void Serialize<T>(T graph, Stream stream)
T
The type of object to be serialized.
graph
: T
An System.Object
to be serialized.
stream
: Stream
A System.IO.Stream
object to write the binary representation of the graph
into.
Exception | Description |
---|---|
System.ArgumentNullException | stream or graph is null . |
This document is generated by DG.