MongoDBDriver/DatabaseJS.cs
/// <summary>
/// Copies the functions from the database ordered by _id (name) to the array starting at the index.
/// </summary>
/// <param name="array">
/// A <see cref="Document[]"/> array to coppy to
/// </param>
/// <param name="arrayIndex">
/// A <see cref="System.Int32"/>
/// </param>
Copies the functions from the database ordered by _id (name) to the array starting at the index.
Copies the functions from the database ordered by _id ( name ) to the array starting at the index .
public void CopyTo (Document[] array, int arrayIndex){
            Document query = new Document().Append("$orderby", new Document().Append("_id", 1));
            int idx = arrayIndex;
            foreach(Document doc in js.Find(query,array.Length - 1,arrayIndex).Documents){
                array[idx] = doc;
                idx++;
            }
        }
public void CopyTo ( Document [ ] array , int arrayIndex ) { Document query = new Document ( ) . Append ( " " , new Document ( ) . Append ( " " , 1 ) ) ; int idx = arrayIndex ; foreach ( Document doc in js . Find ( query , array . Length - 1 , arrayIndex ) . Documents ) { array [ idx ] = doc ; idx ++ ; } }
Copies the functions from the database ordered by _id (name) to the array starting at the index.
Copies the functions from the database ordered by _id ( name ) to the array starting at the index .
array
Document[]
A  array to coppy to
A array to coppy to
arrayIndex
int
None