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.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
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