Table of Contents

Interface IAmASerializer

Namespace
nanoFramework.Protobuf
Assembly
nanoFramework.Protobuf.dll

Interface denoting serialization and deserialization capabilities. Intended to keep implementations for different platforms aligned

public interface IAmASerializer
Extension Methods

Methods

Deserialize(Type, byte[])

Deserializes a byte array to the given type

object Deserialize(Type type, byte[] serialized)

Parameters

type Type

The type to deserialize to

serialized byte[]

The byte array containing the serialized payload

Returns

object

An object graph of Type type

Serialize(object)

Serializes an object graph to a byte array

byte[] Serialize(object obj)

Parameters

obj object

The object graph to serialize

Returns

byte[]

A byte array containing the serialized payload