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

Add BsonArray.Add(string, BsonValue) overload

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.11.3
    • Component/s: BSON
    • Labels:
      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@mongodb.com Robert Stam
            Reporter:
            anuith@live.com Thiwakorn F.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: