Add BsonArray.Add(string, BsonValue) overload

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.11.3
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      For simpler BsonArray initialization by taking advantage of C# collection initializer.

      So we can simplify BsonArray initializing from this :

      new BsonArray
      {
          new BsonDocument("a", 1),
          new BsonDocument("b", 2),
      };

      To this :

      new BsonArray
      {
          { "a", 1 },
          { "b", 2 },
      };

            Assignee:
            Robert Stam
            Reporter:
            Thiwakorn F.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: