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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
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