title: How to convert MOngoDB.BsonDocumnet to list of collection in c#?
body: <p>I have MongoDB.BsonDocument, i want to convert that BsonDocument to List of collection, how can i do this one, i paste my sample code below...</p>
  
  <pre><code>try
  {
      var server = MongoServer.Create("localhost:27017");
      var db = server.GetDatabase(DATABASE);
      var riskdata = db.GetCollection("TABLESAMPLE");
      var query = Query.EQ("Name", null);
      var results = riskdata.Find(query);
      gridsample.ItemsSource = results;
  }
  catch (Exception ex)
  {
      MessageBox.Show(ex.Message);
  }
  </code></pre>
  
  <p>but above code not working for me...."_id" only binding to grid, remaining fields are not coming.</p>