public override void Close()
 {
     base.Close();
     if (base.CloseOutput && _writer != null)
     {
         _writer.Close();
     }
 }
Exemple #2
0
        /// <summary>
        /// Closes this writer.
        /// If <see cref="JsonWriter.CloseOutput"/> is set to <c>true</c>, the underlying <see cref="Stream"/> is also closed.
        /// </summary>
        public override void Close()
        {
            base.Close();

            if (CloseOutput)
            {
                _writer?.Close();
            }
        }
Exemple #3
0
 // Token: 0x0600194B RID: 6475 RVA: 0x000183B4 File Offset: 0x000165B4
 public override void Close()
 {
     base.Close();
     if (base.CloseOutput)
     {
         BsonBinaryWriter writer = this._writer;
         if (writer == null)
         {
             return;
         }
         writer.Close();
     }
 }