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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.8
    • 1.7
    • None
    • None
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: