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

JsonWriter Closes Underlying TextWriter Upon Dispose

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0
    • Affects Version/s: None
    • Component/s: None
    • None

      JsonWriter, unlike JsonReader, BsonWriter, and BsonReader, closes the underlying TextWriter when it is disposed:

      https://github.com/mongodb/mongo-csharp-driver/blob/05d5932ebff415684cc5bbb38b5b82da92a636c0/src/MongoDB.Bson/IO/JsonWriter.cs#L658

      This should not happen.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: