SerializationExtensions.Serialize Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Serialize(object)

Serializes an object, or graph of connected objects, to a byte array.

Uses the BinaryFormatter.

public static byte[] Serialize(this object graph)

Parameters

graph
object

The object that contains the data to serialize.

Returns

System.Byte[]

An byte array representation of the graph.