Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-642

Deprecate this[string name, BsonValue defaultValue] overload of BsonDocument indexer

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.8
    • Affects Version/s: 1.7
    • Component/s: None
    • None
    • Major Change

      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.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: