-
Type: Bug
-
Resolution: Done
-
None
-
Affects Version/s: None
-
Component/s: None
-
Environment:
*Location*: http://docs.mongodb.org/ecosystem/tutorial/use-csharp-driver/#csharp-driver-tutorial
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
*Referrer*: http://docs.mongodb.org/ecosystem/drivers/csharp/
*Screen Resolution*: 1920 x 1080
*repo*: docs-ecosystem
*source*: tutorial/use-csharp-driver
*Location*: http://docs.mongodb.org/ecosystem/tutorial/use-csharp-driver/#csharp-driver-tutorial *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 *Referrer*: http://docs.mongodb.org/ecosystem/drivers/csharp/ *Screen Resolution*: 1920 x 1080 *repo*: docs-ecosystem *source*: tutorial/use-csharp-driver
Hi,
In the BsonDocument.Add section, there's an example that reads:
// traditional approach
BsonArray a1 = new BsonArray();
a1.Add(1);
a2.Add(2);
I imagine the final line of this should refer to a1, not a2?
Cheers,
Clive
Reporter: Clive Miller
E-mail: clive.miller@thomsonreuters.com