Table of Contents

Method Deserialize

Namespace
MongoDB.Bson.Serialization
Assembly
MongoDB.Bson.dll

Deserialize(IBsonSerializer, BsonDeserializationContext)

Deserializes a value.

public static object Deserialize(this IBsonSerializer serializer, BsonDeserializationContext context)

Parameters

serializer IBsonSerializer

The serializer.

context BsonDeserializationContext

The deserialization context.

Returns

object

A deserialized value.

Deserialize<TValue>(IBsonSerializer<TValue>, BsonDeserializationContext)

Deserializes a value.

public static TValue Deserialize<TValue>(this IBsonSerializer<TValue> serializer, BsonDeserializationContext context)

Parameters

serializer IBsonSerializer<TValue>

The serializer.

context BsonDeserializationContext

The deserialization context.

Returns

TValue

A deserialized value.

Type Parameters

TValue

The type that this serializer knows how to serialize.