Class BsonTypeMapper
A static class that maps between .NET objects and BsonValues.
public static class BsonTypeMapper
- Inheritance
-
BsonTypeMapper
- Inherited Members
Methods
- MapToBsonValue(object)
Maps an object to an instance of the closest BsonValue class.
- MapToBsonValue(object, BsonType)
Maps an object to a specific BsonValue type.
- MapToDotNetValue(BsonValue)
Maps a BsonValue to a .NET value using the default BsonTypeMapperOptions.
- MapToDotNetValue(BsonValue, BsonTypeMapperOptions)
Maps a BsonValue to a .NET value.
- RegisterCustomTypeMapper(Type, ICustomBsonTypeMapper)
Registers a custom type mapper.
- TryMapToBsonValue(object, out BsonValue)
Tries to map an object to an instance of the closest BsonValue class.