Table of Contents

Method Create

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Create<TNominalType>(TNominalType)

Creates a new instance of the BsonDocumentWrapper class.

public static BsonDocumentWrapper Create<TNominalType>(TNominalType value)

Parameters

value TNominalType

The wrapped object.

Returns

BsonDocumentWrapper

A BsonDocumentWrapper.

Type Parameters

TNominalType

The nominal type of the wrapped object.

Create(Type, object)

Creates a new instance of the BsonDocumentWrapper class.

public static BsonDocumentWrapper Create(Type nominalType, object value)

Parameters

nominalType Type

The nominal type of the wrapped object.

value object

The wrapped object.

Returns

BsonDocumentWrapper

A BsonDocumentWrapper.