Method WithItemSerializer
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
WithItemSerializer(IBsonSerializer<TItem>)
Returns a serializer that has been reconfigured with the specified item serializer.
public ReadOnlyCollectionSerializer<TItem> WithItemSerializer(IBsonSerializer<TItem> itemSerializer)
Parameters
itemSerializer
IBsonSerializer<TItem>The item serializer.
Returns
- ReadOnlyCollectionSerializer<TItem>
The reconfigured serializer.