Table of Contents

Method CopyTo

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

CopyTo(BsonValue[], int)

Copies elements from this array to another array.

public override void CopyTo(BsonValue[] array, int arrayIndex)

Parameters

array BsonValue[]

The other array.

arrayIndex int

The zero based index of the other array at which to start copying.

CopyTo(object[], int)

Copies elements from this array to another array as raw values (see BsonValue.RawValue).

[Obsolete("Use ToArray or ToList instead.")]
public override void CopyTo(object[] array, int arrayIndex)

Parameters

array object[]

The other array.

arrayIndex int

The zero based index of the other array at which to start copying.