public Append ( String key, Object value ) : |
||
key | String | |
value | Object | |
return |
public Document Append(String key, Object value)
{
this.Add(key, value);
return this;
}
public void TestCalculateSizeOfSimpleDoc() { Document doc = new Document(); doc.Append("a","a"); doc.Append("b",1); MemoryStream ms = new MemoryStream(); BsonWriter writer = new BsonWriter(ms); //BsonDocument bdoc = BsonConvert.From(doc); Assert.AreEqual(21,writer.CalculateSize(doc)); }