title: How is an IAsyncCursor used for iteration with the mongodb c# driver?
body: <p>I'm trying to get a list of all the databases in my server and ultimately print them out (i.e. use their names as <code>string</code>s). With the previous version of the c# driver I could call the <code>Server.GetDatabases()</code>, but that has been replaced with <code>ListDatabasesAsync()</code>.</p>
  
  <p>The return value is an <code>IAsyncCursor&lt;&gt;</code> and I'm not sure what to do with it. How does one iterate through the list of databases (or anything) with such a cursor?</p>