-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.8.0
-
Component/s: BSON
-
None
-
Environment:C# MongoDB Driver 2.8.0
.Net Framework 4.6.1
This piece of code print False:
var bd = new BsonDouble(double.NaN);
var be = new BsonElement("test", bd);
var document = new BsonDocument(be);
Console.WriteLine(document.Equals(document));
//This cause the BsonDocument can't be removed from a list.
var list = new List<BsonDocument>();
list.Add(document);
list.Remove(document); //Nothing happened here.