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

XMLWordPrintableJSON

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

      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 Stam
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: