Table of Contents

Method MapToDotNetValue

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

MapToDotNetValue(BsonValue)

Maps a BsonValue to a .NET value using the default BsonTypeMapperOptions.

public static object MapToDotNetValue(BsonValue bsonValue)

Parameters

bsonValue BsonValue

The BsonValue.

Returns

object

The mapped .NET value.

MapToDotNetValue(BsonValue, BsonTypeMapperOptions)

Maps a BsonValue to a .NET value.

public static object MapToDotNetValue(BsonValue bsonValue, BsonTypeMapperOptions options)

Parameters

bsonValue BsonValue

The BsonValue.

options BsonTypeMapperOptions

The BsonTypeMapperOptions.

Returns

object

The mapped .NET value.