Is there a way to do this:
this.logFile = File.Open(\"what_r_u_doing.log\", FileMode.OpenOrCreate, FileAccess.ReadWrite); using(var sr = new StreamReader(th
I was able to use leaveOpen parameter without specifying all the constructor params (encoding or buffer size) like this:
leaveOpen
using var streaReader = new StreamReader(stream, leaveOpen: true);