[CSHARP-906] Comment on: "ecosystem/tutorial/use-csharp-driver.txt" Created: 10/Feb/14  Updated: 20/Mar/14  Resolved: 20/Mar/14

Status: Closed
Project: C# Driver
Component/s: Documentation
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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


Issue Links:
Duplicate
duplicates CSHARP-938 Write API Documentation and Review Vi... Closed

 Description   

"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 {

{ "name", "abc"}

,

{"age",age}

};

Reporter: bargitta
E-mail: bargittachen@gmail.com


Generated at Wed Feb 07 21:38:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.