-
Type: Improvement
-
Resolution: Duplicate
-
None
-
Affects Version/s: None
-
Component/s: Documentation
-
Environment:.net 4.5 VS 2013, MongoDriver 1.8.3.9
*Location*: http://docs.mongodb.org/ecosystem/tutorial/use-csharp-driver/
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36
*Referrer*: http://docs.mongodb.org/ecosystem/drivers/
*Screen Resolution*: 1920 x 1200
*repo*: docs-ecosystem
*source*: tutorial/use-csharp-driver
.net 4.5 VS 2013, MongoDriver 1.8.3.9 *Location*: http://docs.mongodb.org/ecosystem/tutorial/use-csharp-driver/ *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36 *Referrer*: http://docs.mongodb.org/ecosystem/drivers/ *Screen Resolution*: 1920 x 1200 *repo*: docs-ecosystem *source*: tutorial/use-csharp-driver
"It is important to note that sometimes the Add methods do NOT add a new element. If the value supplied is null (or the condition supplied in the last overload is false) then the element isn’t added. "
I tried this one, and the null value is still added.
int? age = null;
BsonDocument nested = new BsonDocument {
,
{"age",age}};
Reporter: bargitta
E-mail: bargittachen@gmail.com
- duplicates
-
CSHARP-938 Write API Documentation and Review Visibility of Classes/Members
- Closed