Method CopyTo
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
intThe 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)