A static class that maps between .NET objects and BsonValues. More...
Static Public Member Functions | |
static BsonValue | MapToBsonValue (object value) |
Maps an object to an instance of the closest BsonValue class. | |
static BsonValue | MapToBsonValue (object value, BsonType bsonType) |
Maps an object to a specific BsonValue type. | |
static object | MapToDotNetValue (BsonValue bsonValue) |
Maps a BsonValue to a .NET value using the default BsonTypeMapperOptions. | |
static object | MapToDotNetValue (BsonValue bsonValue, BsonTypeMapperOptions options) |
Maps a BsonValue to a .NET value. | |
static void | RegisterCustomTypeMapper (Type type, ICustomBsonTypeMapper customTypeMapper) |
Registers a custom type mapper. | |
static bool | TryMapToBsonValue (object value, out BsonValue bsonValue) |
Tries to map an object to an instance of the closest BsonValue class. | |
A static class that maps between .NET objects and BsonValues.
|
inlinestatic |
|
inlinestatic |
Maps an object to a specific BsonValue type.
value | An object. |
bsonType | The BsonType to map to. |
|
inlinestatic |
Maps a BsonValue to a .NET value using the default BsonTypeMapperOptions.
bsonValue | The BsonValue. |
|
inlinestatic |
Maps a BsonValue to a .NET value.
bsonValue | The BsonValue. |
options | The BsonTypeMapperOptions. |
|
inlinestatic |
Registers a custom type mapper.
type | The type. |
customTypeMapper | A custom type mapper. |
|
inlinestatic |