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
IBsonSerializerThe serializer.
context
BsonDeserializationContextThe 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
BsonDeserializationContextThe deserialization context.
Returns
- TValue
A deserialized value.
Type Parameters
TValue
The type that this serializer knows how to serialize.