/// <summary>
 /// Gets the inline results as TDocuments.
 /// </summary>
 /// <param name="documentType">The type of the documents.</param>
 /// <returns>The documents.</returns>
 public IEnumerable <object> GetInlineResultsAs(Type documentType)
 {
     return(InlineResults.Select(document => BsonSerializer.Deserialize(document, documentType)));
 }
 /// <summary>
 /// Gets the inline results as TDocuments.
 /// </summary>
 /// <typeparam name="TDocument">The type of the documents.</typeparam>
 /// <returns>The documents.</returns>
 public IEnumerable <TDocument> GetInlineResultsAs <TDocument>()
 {
     return(InlineResults.Select(document => BsonSerializer.Deserialize <TDocument>(document)));
 }