Method CreateRoot
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
CreateRoot(IBsonReader, Action<Builder>)
Creates a root context.
public static BsonDeserializationContext CreateRoot(IBsonReader reader, Action<BsonDeserializationContext.Builder> configurator = null)
Parameters
reader
IBsonReaderThe reader.
configurator
Action<BsonDeserializationContext.Builder>The configurator.
Returns
- BsonDeserializationContext
A root context.