Open omajid opened 3 months ago
We create a StreamReader via File.OpenText, but never Dispose() it. Wrap it in a using statement to automatically Dispose() it when TryLoad(TextReader, ...) is done using it.
StreamReader
File.OpenText
Dispose()
using
TryLoad(TextReader, ...)
We create a
StreamReader
viaFile.OpenText
, but neverDispose()
it. Wrap it in ausing
statement to automaticallyDispose()
it whenTryLoad(TextReader, ...)
is done using it.