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.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
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