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 StackSerializer<TItem> WithItemSerializer(IBsonSerializer<TItem> itemSerializer)
Parameters
itemSerializer
IBsonSerializer<TItem>The item serializer.
Returns
- StackSerializer<TItem>
The reconfigured serializer.