When I parse a tar file consisting of multiple EDI files concatenated using SharpZipLib I have to iterate through the files in the same TAR stream and create X12Reader on the same stream at different positions. When the reader is disposed however it also disposes the base stream. Is it possible to add a boolean property to the X12ReaderSettings class to specify is the base stream should be left open after disposing the reader? Then when creating the StreamReader internally you would use this property to set the last parameter of the StreamReader constructor to indicate if we want the stream to be left open after closing the reader.
public StreamReader (System.IO.Stream stream, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool leaveOpen);