Table of Contents

Method CreateMultiple

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

CreateMultiple<TNominalType>(IEnumerable<TNominalType>)

Creates a list of new instances of the BsonDocumentWrapper class.

public static IEnumerable<BsonDocumentWrapper> CreateMultiple<TNominalType>(IEnumerable<TNominalType> values)

Parameters

values IEnumerable<TNominalType>

A list of wrapped objects.

Returns

IEnumerable<BsonDocumentWrapper>

A list of BsonDocumentWrappers.

Type Parameters

TNominalType

The nominal type of the wrapped objects.

CreateMultiple(Type, IEnumerable)

Creates a list of new instances of the BsonDocumentWrapper class.

public static IEnumerable<BsonDocumentWrapper> CreateMultiple(Type nominalType, IEnumerable values)

Parameters

nominalType Type

The nominal type of the wrapped object.

values IEnumerable

A list of wrapped objects.

Returns

IEnumerable<BsonDocumentWrapper>

A list of BsonDocumentWrappers.