Method WithSerializer
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
WithSerializer(IBsonSerializer<T>)
Returns a serializer that has been reconfigured with the specified serializer.
public NullableSerializer<T> WithSerializer(IBsonSerializer<T> serializer)
Parameters
serializer
IBsonSerializer<T>The serializer.
Returns
- NullableSerializer<T>
The reconfigured serializer.