Class ProjectingDeserializer<TFrom, TTo>
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Wraps a serializer and projects using a function.
public sealed class ProjectingDeserializer<TFrom, TTo> : SerializerBase<TTo>, IBsonSerializer<TTo>, IBsonSerializer
Type Parameters
TFrom
The type of from.
TTo
The type of to.
- Inheritance
-
SerializerBase<TTo>ProjectingDeserializer<TFrom, TTo>
- Implements
-
IBsonSerializer<TTo>
- Inherited Members
- Extension Methods
Constructors
- ProjectingDeserializer(IBsonSerializer<TFrom>, Func<TFrom, TTo>)
Initializes a new instance of the ProjectingDeserializer<TFrom, TTo> class.
Methods
- Deserialize(BsonDeserializationContext, BsonDeserializationArgs)
Deserializes a value.
- Equals(object)
Determines whether the specified object is equal to the current object.
- GetHashCode()
Serves as the default hash function.