Andrew Smith  committed cecf0a2

bug fix: Use the leaveOpen parameter passed to CharStream constructor

  • Participants
  • Parent commits e59d30c

Comments (0)

Files changed (1)

File FParsecCS/CharStream.cs

         if (stream == null) throw new ArgumentNullException("stream");
         if (!stream.CanRead) throw new ArgumentException("stream is not readable");
         if (encoding == null) throw new ArgumentNullException("encoding");
-        StreamConstructorContinue(stream, false, encoding, detectEncodingFromByteOrderMarks,
+        StreamConstructorContinue(stream, leaveOpen, encoding, detectEncodingFromByteOrderMarks,
                                   blockSize, blockOverlap, byteBufferLength);