Table of Contents

Method CopyTo

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

CopyTo(BsonValue[], int)

Copies elements from this array to another array.

public virtual 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 virtual 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.