public static void Test_MongoDB_FindAll_01(string collection) { Trace.WriteLine("Test_MongoDB_FindAll_01"); MongoDatabase mdb = GetMongoDatabase(); MongoCursor <BsonDocument> mcursor = mdb.GetCollection(collection).FindAll().SetLimit(10); //IEnumerable<BsonDocument> enumDoc = mcursor.AsEnumerable(); WriteBsonDocuments(mcursor); //RunSource.CurrentRunSource.View(mcursor.zGetBsonDocumentsEnumerate()); mcursor.zGetBsonDocumentsEnumerate().zView(); }