Method CreateRoot
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
CreateRoot(IBsonWriter, Action<Builder>)
Creates a root context.
public static BsonSerializationContext CreateRoot(IBsonWriter writer, Action<BsonSerializationContext.Builder> configurator = null)
Parameters
writer
IBsonWriterThe writer.
configurator
Action<BsonSerializationContext.Builder>The serialization context configurator.
Returns
- BsonSerializationContext
A root context.