Table of Contents

Class BinaryFormatter

Namespace
System.Runtime.Serialization.Formatters.Binary
Assembly
System.Runtime.Serialization.dll

Initializes a new instance of the BinaryFormatter class.

public static class BinaryFormatter
Inheritance
BinaryFormatter
Inherited Members

Methods

Deserialize(byte[])

Deserializes the specified byte array into an object graph.

public static object Deserialize(byte[] buffer)

Parameters

buffer byte[]

The byte array from which to deserialize the object graph.

Returns

object

The top (root) of the object graph.

Remarks

This implementation is specific of .NET nanoFramework.

Exceptions

SerializationException

An error occurred while deserializing an object from the byte array.

Serialize(object)

Serializes the object, or graph of objects with the specified top (root), to a byte array.

public static byte[] Serialize(object graph)

Parameters

graph object

The object at the root of the graph to serialize.

Returns

byte[]

A byte array with the serialized graph.

Remarks

This implementation is specific of .NET nanoFramework.

Exceptions

SerializationException

An error has occurred during serialization.