I need to use this constructor public StreamReader(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool leaveOpen)to set leaveOpento true. And for this I need to set other parameters as well ( Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize). I want to use StreamReader, since I do not want to give some random values. What are the default values for these options?
By the way, I know what I can use StreamReaderwithout using. And the GC will get rid of it without touching the stream.
source
share