mongodb/mongo-csharp-driver — pull request #133 by kosmakoff (2012-10-09 12:09:31+00:00)
Title: Changes to TryMapToBsonValue() method

I faced an issue, when tried to pass *QueryDocument* as an element of array to **Database.Eval()** method.
Internally it called **BsonArray.Create()**, which in turn called **TryMapToBsonValue()** method for each of array elements.
It failed to convert *QueryDocument* to *BsonValue* although it is already a *BsonValue*. So, I added few lines of code to the very beginning of the method to cover that simple case.