_insertQueue.Enqueue(new object[] { database, collection, document });
while(_insertQueue.Count > 0) { var items = _insertQueue.Dequeue(); var database = items[0]; var collection = items[1]; var document = items[2]; var db = _mongoClient.GetDatabase(database); var col = db.GetCollection<BsonDocument>(collection); col.InsertOne(document); }
error CS0021: Cannot apply indexing with [] to an expression of type 'object'