Method TryMapToBsonValue
TryMapToBsonValue(object, out BsonValue)
Tries to map an object to an instance of the closest BsonValue class.
public static bool TryMapToBsonValue(object value, out BsonValue bsonValue)
Parameters
Returns
- bool
True if the mapping was successfull.