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.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
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