Namespace: Assorted.Utils.Serialization
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Overload | Description |
---|---|
Serialize<T>(T) | Serializes an object as a string. |
Serialize<T>(T, Stream) | Serializes an object into a stream. |
Serializes an object as a string.
string Serialize<T>(T graph)
T
The type of object to be serialized.
graph
: T
The object to be serialized.
string
The serialized object as a string.
Exception | Description |
---|---|
System.ArgumentNullException | graph is null . |
Serializes an object into a stream.
void Serialize<T>(T graph, Stream stream)
T
The type of object to be serialized.
graph
: T
The object to be serialized.
stream
: Stream
A stream to write the serialized data.
Exception | Description |
---|---|
System.ArgumentNullException | stream or graph is null . |
This document is generated by DG.