Click or drag to resize

BsonTypeMapper Class

A static class that maps between .NET objects and BsonValues.
Inheritance Hierarchy
SystemObject
  MongoDB.BsonBsonTypeMapper

Namespace:  MongoDB.Bson
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax
public static class BsonTypeMapper

The BsonTypeMapper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberMapToBsonValue(Object)
Maps an object to an instance of the closest BsonValue class.
Public methodStatic memberMapToBsonValue(Object, BsonType)
Maps an object to a specific BsonValue type.
Public methodStatic memberMapToDotNetValue(BsonValue)
Maps a BsonValue to a .NET value using the default BsonTypeMapperOptions.
Public methodStatic memberMapToDotNetValue(BsonValue, BsonTypeMapperOptions)
Maps a BsonValue to a .NET value.
Public methodStatic memberRegisterCustomTypeMapper
Registers a custom type mapper.
Public methodStatic memberTryMapToBsonValue
Tries to map an object to an instance of the closest BsonValue class.
Top
See Also