[CSHARP-642] Deprecate this[string name, BsonValue defaultValue] overload of BsonDocument indexer Created: 08/Dec/12  Updated: 20/Mar/14  Resolved: 10/Dec/12

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

Type: Improvement Priority: Minor - P4
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Major Change

 Description   

This overload is somewhat inappropriate because normally the arguments to an indexer are indexes, and defaultValue is not an index.

Use GetValue(string name, BsonValue defaultValue) instead.

This overload will be deprecated in 1.8 and removed in 2.0.



 Comments   
Comment by auto [ 10/Dec/12 ]

Author:

{u'date': u'2012-12-08T16:11:41Z', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-642: Deprecate this[name, defaultValue] overload of BsonDocument indexer.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/4a354ae257f973b011c0bea2752ee10028dc99c6

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