Constructor ElementAppendingSerializer
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
ElementAppendingSerializer(IBsonSerializer<TDocument>, IEnumerable<BsonElement>, Action<BsonWriterSettings>)
Initializes a new instance of the ElementAppendingSerializer<TDocument> class.
public ElementAppendingSerializer(IBsonSerializer<TDocument> documentSerializer, IEnumerable<BsonElement> elements, Action<BsonWriterSettings> writerSettingsConfigurator = null)
Parameters
documentSerializer
IBsonSerializer<TDocument>The document serializer.
elements
IEnumerable<BsonElement>The elements to append.
writerSettingsConfigurator
Action<BsonWriterSettings>The writer settings configurator.