public void DoInserts() { for(int x = 0; x < this.Iterations; x++){ try{ Document doc = new Document(){{"x",x},{"identifier", this.Identifier}}; this.Collection.Insert(doc); this.Count++; }catch(Exception e){ break; } } }